:root {
  --brand-primary: #4a90e2;
  --brand-secondary: #1c3d5a;
  --brand-tertiary: #8cc1ff;
  --brand-bg: #f9fafb;
  --brand-accent1: #d4b483;
  --brand-accent2: #2ecc71;
  --brand-paleaccent1: #faf7f2;
  --brand-paleaccent2: #eaf9f0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--brand-secondary);
  /*background: #f9f9f9;*/
  background: var(--brand-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body.sd3_logged-in {
  /*background: linear-gradient(to right, #D6EFFA, #ffffff);*/
  background: linear-gradient(to right, var(--brand-primary), var(--brand-bg));
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.sd3_logo1 {
	font-size: 2vw;
	font-weight: normal;
	line-height: 0.8vh;
	color: var(--brand-bg);
}

.sd3_logo2 {
	font-size: 2vw;
	font-weight: normal;
	line-height: 0.8vh;
	color: var(--brand-tertiary);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 4vw;
  /*background: #d1e6eb;*/
  background: var(--brand-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 6.5vh;
  animation: fadeInDown 0.6s ease-out;
}

.sd3_header-actions {
  display: flex;
  align-items: center;
  gap: 1vw;
}

@keyframes fadeInDown { /* NEW */
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sd3_logo {
  font-size: 2.5vw;
  font-weight: bold;
  /*color: #0078d4;*/
}

nav a {
  margin: 0 1vw;
  text-decoration: none;
  color: var(--brand-bg);
  font-weight: 500;
}

nav a:hover { 
  color: var(--brand-accent2);
  text-decoration: none;
}

a:-webkit-any-link {
	text-decoration: none;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2vh 4vw;
  /*background: linear-gradient(to right, #D6EFFA, #ffffff);*/
  background: linear-gradient(to right, var(--brand-primary), var(--brand-bg));
}

.sd3_auth-buttons .sd3_btn {
  margin-left: 1vw;
  padding: 1vh 2vw;
  border-radius: 0.5vw;
  text-decoration: none;
  font-weight: 500;
  font-size: 1vw;
  /*border: 1px solid #0078d4;*/
  border: 1px solid var(--brand-secondary);
  /*color: #0078d4;*/
  color: var(--brand-secondary);
  transition: background 0.3s ease, color 0.3s ease;
}

.sd3_auth-buttons .sd3_btn.primary {
  /*background: #0078d4;*/
  background: var(--brand-primary);
  color: var(--brand-bg);
}

.sd3_auth-buttons .sd3_btn:hover { /* NEW */
  /*background: #0078d4;*/
  background: var(--brand-primary);
  color: var(--brand-bg);
}

.sd3_hero {
  text-align: center;
  padding: 4vh 4vw;
  /*background: linear-gradient(to right, #D6EFFA, #ffffff);*/
  background: linear-gradient(to right, var(--brand-primary), var(--brand-bg));
  animation: fadeIn 1s ease-in;
}

.sd3_notice {
  text-align: center;
  background: linear-gradient(to right, var(--brand-primary), var(--brand-bg));
  animation: fadeIn 1s ease-in;
  min-height: 79.4vh;
}

.sd3_terms {
  text-align: left;
  padding: 0vh 4vw;
  background: linear-gradient(to right, var(--brand-primary), var(--brand-bg));
  animation: fadeIn 1s ease-in;
}

  .sd3_terms .sd3_tab1 {
  text-align: left;
  padding: 0vh 4vw;
}

  .sd3_terms .sd3_tab2 {
  text-align: center;
  padding: 0vh 4vw;
}

  .sd3_terms .sd3_tab3 {
  text-align: right;
  padding: 0vh 4vw;
}

  .sd3_terms p {
    font-size: 0.8rem;
    padding-bottom: 1vh;
  }

  .sd3_terms h1 {
    text-align: center;
  }

.sd3_terms b {
  margin-top: 2vh;
}

.sd3_terms li {
  font-size: 0.8rem;
}

@keyframes fadeIn { /* NEW */
  from { opacity: 0; }
  to { opacity: 1; }
}

.sd3_hero h1 {
  font-size: 1.5vw;
  margin-bottom: 2vh;
}

.sd3_hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.sd3_cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vh;
  margin-top: 4vh;
}

.sd3_cta-buttons .sd3_btn {
  margin: 1vh;
  padding: 1.5vh 3vw;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2vw;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
}

.sd3_cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: center;
  padding: 1vh 0vw;
}

.sd3_cta-row-grouped {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.sd3_cta-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}


.sd3_cta-heading {
  /*background: #eef2ff;
  color: #3730a3;*/
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.sd3_cta-heading.try {
  background: var(--brand-paleaccent1);
  color: var(--brand-accent1);
}

.sd3_cta-heading.build {
  background: var(--brand-paleaccent2);
  color: var(--brand-accent2);
}

.sd3_cta-single {
  display: flex;
  justify-content: center;
  background: var(--brand-paleaccent1);
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sd3_cta-pair {
  display: flex;
  gap: 1.5rem;
  background: var(--brand-paleaccent1);
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sd3_cta-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--brand-paleaccent2);
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.sd3_cta-section {
  margin-bottom: 3rem;
}

.sd3_cta-section h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #1f2937;
}

.sd3_cta-group .sd3_cta-pair {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sd3_cta-group:first-child {
  max-width: 15vw;
  flex: 0 1 15vw;
}

.sd3_cta-group:nth-child(2) {
  max-width: 45vw;
  flex: 1 1 45vw;
}

.sd3_cta-group:nth-child(1) .sd3_cta-box:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3); /* Indigo glow for Try */
}

.sd3_cta-group:nth-child(2) .sd3_cta-box:hover {
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.2); /* Subtle slate glow */
}

.sd3_cta-row.four-wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.sd3_top-nav {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.sd3_top-nav > ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sd3_top-nav li {
  position: relative;
}

.sd3_top-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--brand-accent1);
  padding: 0.5rem 0;
  display: block;
}

/*.top-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}*/

/*.top-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #4F46E5;
  transition: color 0.2s ease;
}*/

.sd3_top-nav a:hover {
  color: var(--brand-bg);
}

.sd3_has-submenu:hover .sd3_submenu {
  display: block;
}

.sd3_has-submenu > a::after {
  content: "▾";
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.sd3_submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF); /* soft indigo gradient */
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  z-index: 1000;
  padding: 0.5rem 0;
}

.sd3_submenu li {
  list-style: none; /* removes bullet points */
}

.sd3_submenu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  /*color: #3730a3;*/
  color: var(--brand-primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 6px;
}

.sd3_submenu li a:hover {
  /*background: #C7D2FE; */
  background: var(--brand-bg);
  /*color: #1e1b4b;*/
  color: var(--brand-primary);
}

.sd3_cta-box {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sd3_cta-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sd3_cta-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  /*color: #111827;*/
  color: var(--brand-primary);
}

.sd3_cta-box p {
  font-size: 0.9rem;
  /*color: #4b5563;*/
  color: var(--brand-secondary);
  margin-bottom: 1rem;
}

.sd3_cta-buttons .sd3_btn.primary {
  /*background: #0078d4;*/
  background: var(--brand-primary);
  /*color: #fff;*/
  color: var(--brand-bg);
}

.sd3_cta-button {
  display: inline-block;
  padding: 0.75em 1.5em;
  margin: 0.5em;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  /*background: linear-gradient(135deg, #4F46E5, #3B82F6); */
  background: var(--brand-primary);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sd3_cta-button:hover,
.sd3_cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background: var(--brand-accent1);
  outline: none;
}

.sd3_cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.sd3_demo-link {
  margin-top: 1.5vh;
}

.sd3_hero-image img {
  max-width: 90vw;
  height: auto;
  margin-top: 4vh;
  border-radius: 1vw;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sd3_hero-image img:hover { /* NEW */
  transform: scale(1.02);
}

.sd3_gallery {
  padding: 6vh 4vw;
  text-align: center;
}

.sd3_gallery .sd3_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2vw;
  margin-top: 2rem;
}

.sd3_gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sd3_gallery img:hover { /* NEW */
  transform: scale(1.03);
}

.sd3_gallery h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0078d4;
}

.sd3_features {
  padding: 4rem 1rem;
  background: #f9fafb;
}

.sd3_features-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 4rem 1rem;
  background: #f9fafb;
}

.sd3_features-text {
  flex: 1 1 400px;
  margin-right: 3vw;
}

.sd3_features-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0078d4;
}

.sd3_features-text ul {
  list-style: none;
  padding: 0;
}

.sd3_features-text li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #374151;
  position: relative;
  padding-left: 1.5rem;
}

.sd3_features-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.sd3_features-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #374151;
  position: relative;
  padding-left: 1.5rem;
}

.sd3_features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.sd3_features-video {
  flex: 1 1 35vw;
  min-width: 35vw;
  margin-left: 3vw;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sd3_features-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}.

.sd3_features-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sd3_features ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 60vw;
}

.sd3_features li {
  font-size: 1.1rem;
  margin: 1rem 0;
}

.sd3_features li:nth-child(1) { animation-delay: 0.2s; }
.sd3_features li:nth-child(2) { animation-delay: 0.4s; }
.sd3_features li:nth-child(3) { animation-delay: 0.6s; }
.sd3_features li:nth-child(4) { animation-delay: 0.8s; }
.sd3_features li:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp { 
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sd3_pricing {
  padding: 6vh 4vw;
  text-align: center;
  background: #eaf6ff;
}

.sd3_pricing-section {
      padding: 2vh 4vw;
      text-align: center;
    }

    .sd3_pricing-intro {
      font-size: 1.4vw;
      margin-bottom: 4vh;
    }

    .sd3_currency-toggle {
      margin-bottom: 4vh;
      font-size: 1.2vw;
    }

    .sd3_currency-toggle select {
      font-size: 1.1vw;
      padding: 0.5vh 1vw;
      border-radius: 0.5vw;
      border: 1px solid #ccc;
    }

    .sd3_billing-toggle select {
      font-size: 1.1vw;
      padding: 0.5vh 1vw;
      border-radius: 0.5vw;
      border: 1px solid #ccc;
    }

    .sd3_pricing-grid {
      display: flex;
      flex-wrap: row;
      gap: 2vw;
      justify-content: center;
      flex-wrap: nowrap;
      overflow-x: auto;
    }

    .sd3_plan-card {
      flex: 0 0 20vw;
      background: #fff;
      border-radius: 1vw;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 3vh 2vw;
      width: 28vw;
      min-width: 280px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .sd3_plan-card:hover {
      transform: translateY(-1vh);
      box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

    .sd3_plan-card h3 {
      font-size: 2vw;
      margin-bottom: 1vh;
    }

    @media (max-width: 900px) {
  .sd3_pricing-grid {
    flex-wrap: wrap;
  }

  .sd3_plan-card {
    flex: 1 1 100%;
    margin-bottom: 4vh;
  }
}

.sd3_billing-toggle {
  margin-bottom: 4vh; /* adds space below the dropdown */
  font-size: 1.2vw;
  display: inline-block;
}

.sd3_pricing-controls {
  display: flex;
  justify-content: center;
  gap: 3vw;
  margin-bottom: 5vh;
  flex-wrap: wrap;
}

    .sd3_price {
      font-size: 1.6vw;
      font-weight: bold;
      margin-bottom: 2vh;
    }

    .sd3_annual {
      font-size: 1vw;
      color: #666;
    }

    .sd3_plan-card ul {
      list-style: none;
      padding: 0;
      margin: 2vh 0;
      text-align: left;
    }

    .sd3_plan-card ul li {
      margin: 1vh 0;
      font-size: 1.1vw;
    }

    .sd3_btn.primary {
      background: #0078d4;
      color: #fff;
      padding: 1.2vh 2vw;
      font-size: 1.1vw;
      border: none;
      border-radius: 0.5vw;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      margin-top: 2vh;
    }

    .sd3_btn.create {
      background: #0078d4;
      color: #fff;
      padding: 1.2vh 2vw;
      width: 100%;
      font-size: 1.1vw;
      border: none;
      border-radius: 0.5vw;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
    }

    .sd3_pricing-note {
      margin-top: 6vh;
      font-size: 1vw;
      color: #555;
    }

footer {
  padding: 2vh 4vw;
  height: 6vh;
  text-align: center;
  background: var(--brand-secondary);
  color: var(--brand-accent1);
  border-top: 1px solid #eee;
}

footer nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--brand-accent1);
}

@media (max-width: 768px) { /* NEW */
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
  }

  .sd3_auth-buttons {
    margin-top: 1rem;
  }

  .sd3_hero h1 {
    font-size: 2rem;
  }

  .sd3_hero p {
    font-size: 1rem;
  }

  .sd3_features ul {
    padding: 0 1rem;
  }
}

.sd3_ai-builder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: #fff;
  animation: fadeIn 1s ease-in;
}

.sd3_ai-content {
  flex: 1 1 35vw;
  max-width: 35vw;
  margin-left:3vw;
  padding-right: 2rem;
}

.sd3_ai-content h2 {
  font-size: 2rem;
  color: #0078d4;
  margin-bottom: 1rem;
}

.sd3_ai-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.sd3_ai-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.sd3_ai-content li {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.sd3_ai-visual {
  flex: 1 1 35vw;
  text-align: center;
}

.sd3_ai-visual img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sd3_ai-visual img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .sd3_ai-builder {
    flex-direction: column;
    text-align: center;
  }

  .sd3_ai-content {
    padding-right: 0;
  }

  .sd3_ai-visual {
    margin-top: 2rem;
  }
}

.sd3_ai-banner {
  background: #0078d4;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.sd3_ai-banner .sd3_btn.small {
  background: #fff;
  color: #0078d4;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.sd3_ai-banner .sd3_btn.small:hover {
  background: #eaf6ff;
}

.sd3_ai-content .sd3_btn {
  margin-left: 1vw;
  padding: 1vh 2vw;
  border-radius: 0.5vw;
  text-decoration: none;
  font-weight: 500;
  font-size: 1vw;
  border: 1px solid #0078d4;
  color: #0078d4;
  transition: background 0.3s ease, color 0.3s ease;
}

.sd3_ai-content .sd3_btn.small {
  background: #0078d4;
  color: #fff;
}

.sd3_ai-content .sd3_btn:hover { 
  background: #0078d4;
  color: #fff;
}

/* Modal styles */
.sd3_modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
}

.sd3_modal-content {
  background: #fff;
  margin: 10vh auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  animation: fadeInUp 0.4s ease;
}

.sd3_modal-content h3 {
  margin-top: 0;
}

.sd3_modal-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.sd3_close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.sd3_auth-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.sd3_auth-btn {
  display: block;
  padding: 0.75rem;
  /*background: #0078d4;*/
  background: var(--brand-accent2);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.sd3_auth-btn:hover {
  background: var(--brand-accent2);
}

.sd3_video-and-text {
  flex: 1 1 500px;
  min-width: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sd3_video-and-text iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sd3_text-content {
  flex: 1 1 400px;
}

.sd3_text-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.sd3_text-content ul {
  list-style: none;
  padding: 0;
}

.sd3_text-content li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #374151;
  position: relative;
  padding-left: 1.5rem;
}

.sd3_text-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981; /* emerald green checkmark */
  font-weight: bold;
}


.sd3_video-wrapper {
  width: 50vw;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}

.sd3_video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sd3_feature-list {
  flex: 1 1 30vw;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.4vw;               /* Increased size */
  font-weight: 600;               /* Bolder text */
  line-height: 1.6;
  color: #333;
}

.sd3_feature-list li {
  margin: 1.5vh 0;
  padding-left: 1vw;
}

.sd3_btn.subtle {
  background: transparent;
  color: #0078d4;
  border: 2px solid #0078d4;
  padding: 1.5vh 3vw;
  font-size: 1.2vw;
  border-radius: 0.5vw;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sd3_btn.subtle:hover {
  border-color: #0078d4;
  color: #0078d4;
}

.sd3_btn.cancel {
      background: transparent;
      color: #0078d4;
      padding: 1.2vh 2vw;
      font-size: 1.1vw;
      border: none;
      border-radius: 0.5vw;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      margin-top: 2vh;
      text-decoration: none;
      transition: all 0.2s ease;
    }

.sd3_btn.cancel {
  background: transparent;
  color: #0078d4;
  border: 2px solid #0078d4;
  padding: 0.5vh 3vw;
  font-size: 1.2vw;
  border-radius: 0.5vw;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sd3_btn.cancel:hover {
  border-color: #0078d4;
  color: #0078d4;
}

.sd3_btn.solid {
  background-color: #0078d4;
  color: #fff;
  border: 2px solid #0078d4;
  padding: 1.5vh 3vw;
  font-size: 1.2vw;
  border-radius: 0.5vw;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sd3_btn.solid:hover {
  border-color: #0078d4;
  color: var(--brand-bg);
}

.sd3_btn.logout {
  background-color: #0078d4;
  color: #fff;
  border: 2px solid #0078d4;
  padding: 0.5vh 3vw;
  font-size: 1.2vw;
  border-radius: 0.5vw;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sd3_btn.logout:hover {
  border-color: #0078d4;
  color: #0078d4;
}

.sd3_help-link {
  display: inline-block;
  margin-top: 1vh;
  font-size: 0.9rem;
  color: #0078d4;
  text-decoration: underline;
  cursor: pointer;
}

/*
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10vh auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
*/

.sd3_close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

.sd3_login-options {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  margin-top: 2vh;
}

.sd3_login-options .sd3_btn {
  padding: 1vh 2vw;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.sd3_confirmation-section {
      padding: 6vh 4vw;
      text-align: center;
    }

    .sd3_confirmation-section h2 {
      font-size: 2.5vw;
      color: #0078d4;
      margin-bottom: 2vh;
    }

    .sd3_confirmation-details {
      font-size: 1.2vw;
      color: #333;
      margin-top: 4vh;
    }

    .sd3_confirmation-details span {
      display: block;
      margin: 1vh 0;
    }

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

.sd3_overlay-content {
  background: #fff;
  padding: 4vh 4vw;
  border-radius: 1vw;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.sd3_overlay-content h2 {
  font-size: 2vw;
  margin-bottom: 2vh;
  color: #0078d4;
}

.sd3_overlay-content p {
  font-size: 1.2vw;
  margin-bottom: 3vh;
}

.sd3_overlay-content button {
  padding: 1vh 2vw;
  font-size: 1vw;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 0.5vw;
  cursor: pointer;
}

.sd3_input-section {
  width: 90vw;
  max-width: 600px;
  background: #fff;
  padding: 4vh 4vw;
  border-radius: 1vw;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  animation: fadeIn 0.8s ease;
}

.sd3_input-section h1 {
  font-size: 2vw;
  margin-bottom: 2vh;
}

.sd3_input-section p {
  font-size: 1vw;
  margin-bottom: 4vh;
}

.sd3_input-section input[type="text"] {
  display: block;
  width: 100%;
  max-width: 40vw;
  padding: 1.5vh 1vw;
  font-size: 1.2vw;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.sd3_header-actions input[type="text"] {
  display: block;
  width: 100%;
  max-width: 40vw;
  padding: 1.5vh 1vw;
  font-size: 1.2vw;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.sd3_loading {
  margin-top: 4vh;
  text-align: center;
}

.sd3_loading.sd3_hidden {
  display: none;
}

.sd3_spinner {
  width: 5vw;
  height: 5vw;
  border: 0.5vw solid #ccc;
  border-top: 0.5vw solid #0078d4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sd3_user-plan-badge {
  position: fixed;
  margin-top: 7.5vh;
  z-index: 1000;
  font-size: 1vw;
  color: #444;
  font-weight: 500;
  width: 98%;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  gap: 0.5vw;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
  justify-content: flex-end;
}

.sd3_plan-label {
  opacity: 0.6;
  font-weight: 400;
  color: var(--brand-accent1);
}

.sd3_plan-name {
  font-weight: 600;
  color: var(--brand-accent2);
  text-transform: capitalize;
}

.sd3_dashboard-container {
      padding: 4vh 4vw;
    }

    .sd3_dashboard-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 4vh;
      flex-wrap: wrap;
      gap: 2vw;
    }

    .sd3_dashboard-header h1 {
      font-size: 2vw;
      margin: 0;
      flex: 1;
    }

    .sd3_dashboard-header .actions {
      display: flex;
      gap: 2vw;
    }

    .sd3_dashboard-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 2vh 2vw;
    }

.sd3_dashboard-link {
  display: block;
  width: 100%;
  height: 80%;
  text-decoration: none;
  color: inherit;
}


.sd3_dashboard-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.6vw;
  padding: 2vh 2vw;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.sd3_access-admin {
  background: #f9fafb;
  border: 5px solid #d4b483;
}

.sd3_access-owner {
  background: #f9fafb;
  border: 5px solid #2ecc71;
}

.sd3_access-collaborator {
  background: #f9fafb;
}


.sd3_dashboard-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.sd3_dashboard-card-top {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-bottom: 2vh;
}

.sd3_dashboard_delete {
  display: flex;
  flex-direction: row-reverse;
}

.sd3_dashboard-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0.4vw;
  background: #f9f9f9;
}


.sd3_dashboard-meta h3 {
  margin: 0;
  font-size: 1.2vw;
  color: #0078d4;
}

.sd3_dashboard-meta .sd3_company {
  font-size: 1vw;
  color: #666;
  margin: 0.5vh 0;
}

.sd3_dashboard-meta .sd3_access-level {
  font-size: 0.9vw;
  color: #444;
  margin: 0.5vh 0;
}

.sd3_dashboard-meta .sd3_description {
  font-size: 0.9vw;
  color: #555;
  margin: 1vh 0 2vh;
}

.sd3_dashboard-meta .sd3_btn.subtle {
  font-size: 0.9vw;
  padding: 0.8vh 1.6vw;
  background: transparent;
  border: 1px solid #0078d4;
  color: #0078d4;
  border-radius: 0.4vw;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sd3_dashboard-meta .sd3_btn.subtle:hover {
  background: #f0f8ff;
}

.sd3_dashboard-meta-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sd3_dashboard-meta-top .sd3_company {
  font-size: 0.8vw;
  color: #444;
  margin: 0;
}

.sd3_dashboard-meta-top .sd3_access-level {
  font-size: 0.8vw;
  color: #0078d4;
  margin: 0.5vh 0 0;
  font-weight: 200;
}

.sd3_dashboard-card-bottom h3 {
  margin: 0 0 1vh;
  font-size: 1.1vw;
  color: #0078d4;
}

.sd3_dashboard-card-bottom .sd3_description {
  font-size: 0.9vw;
  color: #555;
  margin: 0;
}

.sd3_dashboard-card-bottom .sd3_client_id {
  font-size: 0.6vw;
  color: #555;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin: 0;
}

.sd3_gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #131314;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #e3e3e3;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: 20vw;
  max-width: 400px;
  min-width: min-content;
  border-color: #8e918f;
}

.sd3_gsi-material-button .sd3_gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.sd3_gsi-material-button .sd3_gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.sd3_gsi-material-button .sd3_gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.sd3_gsi-material-button .sd3_gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.sd3_gsi-material-button:disabled {
  cursor: default;
  background-color: #13131461;
  border-color: #8e918f1f;
}

.sd3_gsi-material-button:disabled .sd3_gsi-material-button-state {
  background-color: #e3e3e31f;
}

.sd3_gsi-material-button:disabled .sd3_gsi-material-button-contents {
  opacity: 38%;
}

.sd3_gsi-material-button:disabled .sd3_gsi-material-button-icon {
  opacity: 38%;
}

.sd3_gsi-material-button:not(:disabled):active .sd3_gsi-material-button-state,
.sd3_gsi-material-button:not(:disabled):focus .sd3_gsi-material-button-state {
  background-color: white;
  opacity: 12%;
}

.sd3_gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.sd3_gsi-material-button:not(:disabled):hover .sd3_gsi-material-button-state {
  background-color: white;
  opacity: 8%;
}

.sd3_dashboard-search {
  margin-bottom: 4vh;
  text-align: center;
}

#sd3_dashboardSearchInput {
  padding: 1vh 2vw;
  font-size: 1vw;
  border: 1px solid #ccc;
  border-radius: 0.5vw;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.sd3_help_para {
  padding-bottom: 1vw;
}

.sd3_error_para {
  padding-bottom: 1vw;
  color: red;
}

.sd3_formmodal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}

.sd3_formmodal {
  background: #fff;
  padding: 4vh 3vw;
  border-radius: 0.6vw;
  max-width: 60vw;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sd3_formmodal h2 {
  margin-top: 0;
}

.sd3_formmodal label {
  display: block;
  margin-bottom: 2vh;
}

.sd3_formmodal input[type="text"],
.sd3_formmodal input[type="password"],
.sd3_formmodal input[type="checkbox"], 
.sd3_formmodal select,
.sd3_formmodal textarea {
  width: 100%;
  padding: 1vh;
  font-size: 1vw;
  margin-top: 0.5vh;
  border: 1px solid #ccc;
  border-radius: 0.4vw;
  box-sizing: border-box;
}

.sd3_formmodal select {
  background-color: #fff;
  appearance: none;
  cursor: pointer;
  padding-right: 2rem; /* space for arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.sd3_formmodal textarea {
  resize: vertical; /* allow vertical resize only */
  min-height: 10vh;
  line-height: 1.4;
}


.sd3_formmodal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1vw;
  margin-top: 3vh;
}

.sd3_formmodal .sd3_multiselect-options input[type="checkbox"] {
  width: auto;   /* override the 100% */
  display: inline-block; /* keep it inline with text */
}

.sd3_formmodal .sd3_multiselect-options label {
  margin-bottom: 0vh;   /* override the margin-bottom */
}

.sd3_multiselect {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 2vh;
}

.sd3_multiselect-trigger {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.4vw;
  padding: 1vh 1vw;
  cursor: pointer;
  display: flex;
  justify-content: space-between; /* arrow right-justified */
  align-items: center;
}

.sd3_multiselect-trigger .sd3_arrow {
  font-size: 0.7rem; /* smaller arrow */
  margin-left: auto;
  color: #333;
}

.sd3_multiselect-options {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.4vw;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-top: 0.5vh;
  z-index: 1001;
}

.sd3_multiselect-options label {
  display: flex;              /* align checkbox + text */
  align-items: center;
  justify-content: flex-start;
  padding: 0.5vh 1vw;
  cursor: pointer;
}

.sd3_multiselect-options input[type="checkbox"] {
  margin-right: 0.6vw;        /* checkbox to the left */
  flex: 0 0 auto;
}

.sd3_multiselect-options label span {
  flex: 0 1 auto;                    /* text takes remaining space */
  text-align: left;           /* ensure text is left-aligned */
}

.sd3_multiselect-options input {
  margin-right: 0.5vw;
}

.sd3_multiselect.open .sd3_multiselect-options {
  display: block;
}

.sd3_multiselect-actions {
  display: flex;
  justify-content: space-between;
  padding: 0.5vh 1vw;
  border-top: 1px solid #eee;
}

.sd3_multiselect-actions button {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  background: #f9f9f9;
  cursor: pointer;
}

.sd3_multiselect-actions button:hover {
  background: #eee;
}

.sd3_singlelabel {
  border: none;
  width: 100%;
  margin-top: 0.5vh;
  margin-bottom: 0.5vh;
  z-index: 1001;
}

.sd3_form-row {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-bottom: 2vh;
}

.sd3_form-row input {
  flex: 1;
}

.sd3_form-row label {
  position: relative;
  top: 1.1vh;
}

.sd3_field-help {
  font-size: 0.9vw;
  color: #666;
  white-space: nowrap;
}

.sd3_modal input[readonly] {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

.sd3_token-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5vw;
}

.sd3_token-status {
  font-size: 1.2vw;
  color: #ccc;
  transition: color 0.3s ease;
}

.sd3_token-status.valid {
  color: #28a745; /* green */
}

.sd3_token-status.invalid {
  color: #dc3545; /* red */
}

.sd3_form-wrapper {
  display: flex;
  gap: 3vw;
  align-items: flex-start;
}

.sd3_sticky-help {
  /*flsd3_ex: 1; */
  font-size: 0.8vw;
  color: #444;
  background: #ffffff;
  padding-left: 2vw;
  padding-right: 1vw;
  padding-top: 6vh;
  border-radius: 0.5vw;
  min-height: 10vh;
  width: 25vw;
  visibility: visible;
  display: block;
}

.sd3_form-wrapper input[readonly] {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

.sd3_sticky-help p {
  font-size: 1.3vw;
}

.sd3_help-icon {
  display: inline-block;
  margin-left: 0.5vw;
  width: 1.5vw;
  height: 1.5vw;
  border-radius: 50%;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 1vw;
  line-height: 1.5vw;
  transition: background-color 0.3s ease;
}

.sd3_help-icon:hover {
  background-color: var(--brand-accent1);
}

.sd3_save_help-icon {
  display: inline-block;
  margin-left: 0.5vw;
  width: 1.5vw;
  height: 1.5vw;
  border-radius: 50%;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  font-size: 1vw;
  line-height: 1.5vw;
  transition: background-color 0.3s ease;
}

.sd3_save_help-icon:hover {
  background-color: var(--brand-accent1);
}

.sd3_hamburger-menu {
  position: relative;
  display: inline-block;
}

#sd3_hamburger-toggle {
  border: none;
  cursor: pointer;
}

#sd3_hamburger-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid var(--brand-bg);
  border-radius: 6px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 1000;
}

#sd3_hamburger-dropdown li {
  border-bottom: 1px solid var(--brand-bg);
}

#sd3_hamburger-dropdown li:last-child {
  border-bottom: none;
}

#sd3_hamburger-dropdown a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--brand-secondary);
}

#sd3_hamburger-dropdown a:hover {
  background-color: var(--brand-accent1);
}

.sd3_avatar {
  	width: 2vw;
 	height: 2vw;
	border-radius: 50%;
  	background: var(--brand-primary);
    	color: var(--brand-bg);
    	display: flex;
    	align-items: center;
    	justify-content: center;
    	font-size: 1.5vw;
    	font-weight: 600;
    	font-family: sans-serif;
}

.sd3_hidden {
  display: none;
}

