:root{
  /* Core palette - Bold 2026 colors */
  --bg: #0a0a0f;
  --bg-accent: #12121a;
  --card-bg: rgba(20, 20, 30, 0.7);
  --muted: #94a3b8;
  --primary: #a855f7;
  --primary-hover: #c084fc;
  --secondary: #06b6d4;
  --accent: #f43f5e;
  --success: #10b981;

  /* UI */
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 780px;
  --container-padding: 24px;

  /* Elevation */
  --shadow-sm: 0 8px 32px rgba(168, 85, 247, 0.15);
  --shadow-md: 0 20px 60px rgba(168, 85, 247, 0.3);
  --glow: 0 0 40px rgba(168, 85, 247, 0.4);
}

/* -------------------------------------------------- */
/* Base Reset */
/* -------------------------------------------------- */

*,*::before,*::after{box-sizing:border-box}

body{
  margin:0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15), transparent),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 100% 100% at 20% 80%, rgba(244, 63, 94, 0.08), transparent),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
  color:#f1f5f9;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  padding: clamp(20px, 4vw, 50px);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(168, 85, 247, 0.03) 2px,
      rgba(168, 85, 247, 0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
}

/* -------------------------------------------------- */
/* Card Layout */
/* -------------------------------------------------- */

.card{
  width:100%;
  max-width:var(--max-width);
  background:var(--card-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius:var(--radius);
  padding: clamp(28px, 4.5vw, 48px);
  box-shadow: 
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  position: relative;
  z-index: 10;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.8) 50%,
    transparent
  );
  opacity: 0.6;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.card:hover::after {
  opacity: 1;
}

#adminPreview{
  background:var(--card-bg);
}

/* -------------------------------------------------- */
/* redesign for footer */
/* -------------------------------------------------- */

/* Full-page flex layout */
body {
  display: flex;
  flex-direction: column; /* stack content vertically */
  min-height: 100vh;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f1f5f9;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15), transparent),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 100% 100% at 20% 80%, rgba(244, 63, 94, 0.08), transparent),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}



/* Allow main content to expand and push footer down */
.page-content {
  flex: 1;  /* grows to fill space */
  display: flex;
  align-items: center;   /* optional: vertically center card if page is taller than card */
  justify-content: center;
}

/* Footer styling */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  background-color: var(--card-bg); /* matches card background */
}

/* Footer Links */

.site-footer a {
  color: white;
}


/* -------------------------------------------------- */
/* Typography */
/* -------------------------------------------------- */

h1,h2{
  margin:0 0 16px 0;
  letter-spacing:-0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(168, 85, 247, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

h1{
  font-size: clamp(32px, 4vw, 48px);
  font-weight:800;
  line-height: 1.1;
}

h2{
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight:700;
}

p.lead{
  margin:0 0 28px 0;
  color:var(--muted);
  font-size:1.05rem;
  max-width:65ch;
  line-height: 1.7;
}

/* -------------------------------------------------- */
/* Form */
/* -------------------------------------------------- */

form{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:24px;
}

label{
  font-size:0.875rem;
  font-weight:600;
  color:#cbd5e1;
  margin-bottom:8px;
  letter-spacing:0.025em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

input[type="text"], textarea{
  width:100%;
  padding:16px 20px;
  font-size:1rem;
  border-radius:var(--radius-sm);
  border:1px solid rgba(168, 85, 247, 0.2);
  background:rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(10px);
  color:#f1f5f9;
  outline:none;
  transition:
    box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color .3s cubic-bezier(0.4, 0, 0.2, 1),
    transform .15s ease,
    background .3s ease;
}

input::placeholder,
textarea::placeholder{
  color:#64748b;
}

input:focus,
textarea:focus{
  border-color: var(--primary);
  background:rgba(15, 15, 25, 0.8);
  box-shadow: 
    0 0 0 3px rgba(168, 85, 247, 0.1),
    0 10px 40px rgba(168, 85, 247, 0.3);
  transform: translateY(-1px);
}

textarea{
  resize:vertical;
  min-height:120px;
}

/* -------------------------------------------------- */
/* Rows / Layout */
/* -------------------------------------------------- */

.row{
  display:flex;
  gap:18px;
  align-items:center;
}

/* -------------------------------------------------- */
/* Buttons */
/* -------------------------------------------------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color:white;
  border:none;
  font-weight:700;
  font-size:1rem;
  border-radius:var(--radius-sm);
  cursor:pointer;
  box-shadow: 
    0 8px 32px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform .2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow .2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 
    0 12px 48px rgba(168, 85, 247, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active{
  transform: translateY(0);
}

.btn[disabled]{
  opacity:0.5;
  cursor:not-allowed;
  box-shadow:none;
  transform: none;
}

.btn[disabled]:hover::before {
  left: -100%;
}

.btn-contact {
  margin-bottom: 10px;
}

vendorHr {
  margin-top: 10px;
  border-top: 5px solid white;
}

.signin-btn {
  background-color: #40e360;
  color: white;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  background:
    linear-gradient(135deg, #40e360 0%, var(--secondary) 100%);
  color:white;
  border:none;
  font-weight:700;
  font-size:1rem;
  border-radius:var(--radius-sm);
  cursor:pointer;
  box-shadow: 
    0 8px 32px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform .2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow .2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

/* -------------------------------------------------- */
/* Helper Text */
/* -------------------------------------------------- */

.help{
  color:var(--muted);
  font-size:0.9rem;
}

.success{
  color:var(--success);
  font-weight:600;
  margin-top:12px;
}

/* -------------------------------------------------- */
/* Vendor Messages */
/* -------------------------------------------------- */

.vmessages {
  padding:16px 24px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color:#f1f5f9;
  font-weight:600;
  font-size:1rem;
  border-radius:var(--radius-sm);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
  margin-bottom: 20px;
}

.vmsg {
  background:rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  padding:14px 18px;
  color:#f1f5f9;
  border:1px solid rgba(168, 85, 247, 0.2);
  font-weight:600;
  font-size:0.95rem;
  border-radius:var(--radius-sm);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2);
}

/* -------------------------------------------------- */
/* KPIs */
/* -------------------------------------------------- */


.kpi-container {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 20px 0;
}

.kpi-item {
  flex: 1;
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.kpi-label {
  margin-top: 8px;
  font-size: 1rem;
  color: #666;
}


/* -------------------------------------------------- */
/* Accessibility */
/* -------------------------------------------------- */

:focus-visible{
  outline:3px solid rgba(168, 85, 247, 0.4);
  outline-offset:3px;
  border-radius:12px;
}

/* -------------------------------------------------- */
/* Spinner */
/* -------------------------------------------------- */

#spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#spinner span {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid rgba(168, 85, 247, 0.2);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  vertical-align: middle;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================ */
    /* COOKIE CONSENT STYLES - COPY THIS SECTION */
    /* ============================================ */
    
    .cookie-consent {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(20, 20, 30, 0.98);
      backdrop-filter: blur(40px) saturate(180%);
      border-top: 1px solid rgba(168, 85, 247, 0.3);
      padding: 24px;
      box-shadow: 0 -20px 60px rgba(168, 85, 247, 0.3);
      z-index: 10000;
      transform: translateY(100%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .cookie-consent.show {
      transform: translateY(0);
    }

    .cookie-consent-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .cookie-icon {
      font-size: 2.5rem;
      flex-shrink: 0;
    }

    .cookie-text {
      flex: 1;
      min-width: 280px;
    }

    .cookie-text h3 {
      margin: 0 0 8px 0;
      font-size: 1.2rem;
      font-weight: 700;
      color: #fff;
    }

    .cookie-text p {
      margin: 0;
      font-size: 0.95rem;
      color: #cbd5e1;
      line-height: 1.5;
    }

    .cookie-text a {
      color: #06b6d4;
      text-decoration: none;
      border-bottom: 1px solid rgba(6, 182, 212, 0.3);
      transition: all 0.2s ease;
    }

    .cookie-text a:hover {
      color: #fff;
      border-bottom-color: #fff;
    }

    .cookie-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .cookie-btn {
      padding: 12px 24px;
      font-size: 0.95rem;
      font-weight: 700;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      white-space: nowrap;
    }

    .cookie-btn-accept {
      background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
      color: white;
      box-shadow: 0 8px 32px rgba(168, 85, 247, 0.4);
    }

    .cookie-btn-accept:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 48px rgba(168, 85, 247, 0.5);
    }

    .cookie-btn-customize {
      background: rgba(168, 85, 247, 0.1);
      color: #a855f7;
      border: 1px solid rgba(168, 85, 247, 0.3);
    }

    .cookie-btn-customize:hover {
      background: rgba(168, 85, 247, 0.2);
      border-color: rgba(168, 85, 247, 0.5);
    }

    .cookie-btn-reject {
      background: transparent;
      color: #94a3b8;
      border: 1px solid rgba(148, 163, 184, 0.3);
    }

    .cookie-btn-reject:hover {
      background: rgba(148, 163, 184, 0.1);
      color: #cbd5e1;
    }

    /* Cookie Settings Modal */
    .cookie-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(10px);
      z-index: 10001;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .cookie-modal.show {
      display: flex;
    }

    .cookie-modal-content {
      background: rgba(20, 20, 30, 0.98);
      backdrop-filter: blur(40px) saturate(180%);
      border: 1px solid rgba(168, 85, 247, 0.3);
      border-radius: 24px;
      padding: 40px;
      max-width: 600px;
      width: 100%;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
    }

    .cookie-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }

    .cookie-modal-header h2 {
      margin: 0;
      font-size: 1.6rem;
      font-weight: 700;
      color: #fff;
    }

    .cookie-modal-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #94a3b8;
      cursor: pointer;
      padding: 8px;
      line-height: 1;
      transition: color 0.2s ease;
    }

    .cookie-modal-close:hover {
      color: #fff;
    }

    .cookie-option {
      background: rgba(168, 85, 247, 0.05);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
    }

    .cookie-option-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .cookie-option h3 {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 600;
      color: #fff;
    }

    .cookie-option p {
      margin: 0;
      font-size: 0.9rem;
      color: #cbd5e1;
      line-height: 1.6;
    }

    .cookie-toggle {
      position: relative;
      width: 50px;
      height: 26px;
      cursor: pointer;
    }

    .cookie-toggle input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .cookie-toggle-slider {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(148, 163, 184, 0.3);
      border-radius: 26px;
      transition: all 0.3s ease;
    }

    .cookie-toggle-slider:before {
      content: "";
      position: absolute;
      height: 20px;
      width: 20px;
      left: 3px;
      bottom: 3px;
      background: white;
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .cookie-toggle input:checked + .cookie-toggle-slider {
      background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    }

    .cookie-toggle input:checked + .cookie-toggle-slider:before {
      transform: translateX(24px);
    }

    .cookie-toggle input:disabled + .cookie-toggle-slider {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .cookie-modal-actions {
      display: flex;
      gap: 12px;
      margin-top: 24px;
      flex-wrap: wrap;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .cookie-consent-content {
        flex-direction: column;
        text-align: center;
      }

      .cookie-actions {
        width: 100%;
        flex-direction: column;
      }

      .cookie-btn {
        width: 100%;
      }

      .cookie-modal-content {
        padding: 30px 20px;
      }
    }

/* -------------------------------------------------- */
/* Responsive */
/* -------------------------------------------------- */

@media (min-width:900px){
  .two-col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
  }
}

/* -------------------------------------------------- */
/* Clerk override - Allow for Now */ 
/* -------------------------------------------------- */

/*
/*  .cl-dividerRow, .cl-form {
/*    display: none;
/*  }
*/

/* -------------------------------------------------- */
/* Invite Modal */
/* -------------------------------------------------- */


#inviteModal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

#inviteModal .modal-content {
  background-color: var(--bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

#inviteModal .close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

#inviteModal .close:hover,
#inviteModal .close:focus {
  color: #000;
}

#inviteEmail {
  box-sizing: border-box;
  width: 100%;
  border-radius: 4px;
  font-size: large;
  background: white;
  margin-bottom: 10px;
}

#inviteModal #inviteButton,
#inviteModal #bulkInviteButton {
    display: block;
    margin: 0 auto;
}

.form-group small {
  margin-bottom:10px;
}

@keyframes slideIn {
  from {
      transform: translateY(-50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}


/* Tasks */

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Prevent full-height button */
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
}

.task-content {
  display: flex;
  flex-direction: column;
}

.task-title {
  margin-bottom: 4px;
}

.task-status {
  color: #666;
  font-weight: normal;
}

.task-description {
  margin: 0;
  color: #444;
  font-size: 14px;
}

.dismiss-btn {
  color: red;
  cursor: pointer;
  padding: 6px 12px;
  align-self: flex-start;
}


.mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}