/*
Theme Name: SelaroDesk Ultra
Theme URI: https://selarodesk.com
Author: SelaroDesk
Author URI: https://selarodesk.com
Description: A polished SaaS marketing theme for SelaroDesk with full, pre-filled pages inspired by top field-service platforms.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: selarodesk-ultra
*/

:root {
  --bg-body: #020617;
  --bg-elevated: #020617;
  --bg-panel: rgba(15,23,42,1);
  --bg-pill: rgba(30,64,175,0.22);
  --border-subtle: rgba(148,163,184,0.35);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #38bdf8;
  --accent-strong: #2563eb;
  --danger: #f97373;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2,6,23,0.96);
  backdrop-filter: blur(18px);
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title a {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.35rem;
}

.site-tagline {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

.site-nav a {
  color: #cbd5f5;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav .nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 10px 25px rgba(37,99,235,0.45);
  font-weight: 600;
}

.site-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  min-height: calc(100vh - 160px);
}

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.button-primary,
.wp-block-button__link {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(37,99,235,0.45);
}

.button-primary:hover,
.wp-block-button__link:hover {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  text-decoration: none;
}

.button-secondary {
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid #4b5563;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.button-ghost {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid rgba(75,85,99,0.8);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(15,23,42,0.8);
}

/* === Hero & sections === */

.hero {
  padding: 40px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  grid-gap: 36px;
  align-items: center;
}

.hero-left {
  max-width: 560px;
}

.hero-right {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 18px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,1));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.7rem;
  line-height: 1.06;
  margin-bottom: 16px;
  color: #e5e7eb;
}

.hero-highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #6b7280;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  margin-top: 10px;
}

.metric {
  border-radius: 12px;
  border: 1px solid rgba(55,65,81,0.85);
  padding: 10px 12px;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 600;
}

.metric-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 2px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(75,85,99,0.9);
  color: #9ca3af;
  background: rgba(15,23,42,0.8);
}

.section {
  margin-top: 5px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.65rem;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.section-subtitle {
  color: #9ca3af;
  margin: 0;
  max-width: 520px;
  font-size: 0.96rem;
}

.section-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
}

.feature-card {
  border-radius: 16px;
  border: 1px solid rgba(75, 85, 99, 0.7);
  padding: 16px 16px 14px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.10), rgba(15,23,42,1));
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #e5e7eb;
}

.feature-card p,
.feature-card li {
  color: #9ca3af;
  font-size: 0.91rem;
}

.feature-card ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

/* Misc cards */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  margin-bottom: 8px;
}

.role-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 2fr);
  grid-gap: 24px;
}

.role-list {
  border-radius: 16px;
  border: 1px solid rgba(75,85,99,0.7);
  padding: 14px;
  background: rgba(15,23,42,0.9);
}

.role-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: default;
  color: var(--text-muted);
}

.role-list-item strong {
  color: var(--text-main);
}

.role-list-item + .role-list-item {
  margin-top: 4px;
}

.role-detail {
  border-radius: 16px;
  border: 1px solid rgba(75,85,99,0.7);
  padding: 16px 16px 14px;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.14), rgba(15,23,42,1));
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 24px;
}

.pricing-card {
  border-radius: 20px;
  border: 1px solid rgba(75, 85, 99, 0.85);
  padding: 20px 18px 18px;
  background: radial-gradient(circle at top, rgba(59,130,246,0.16), rgba(15,23,42,1));
}

.pricing-card--highlight {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(37,99,235,0.45);
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.price-amount {
  font-size: 1.6rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 8px 0 4px;
}

.price-note {
  font-size: 0.8rem;
  color: #9ca3af;
}

.pricing-card ul {
  padding-left: 18px;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* FAQ, contact */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  grid-gap: 24px;
}

.faq-item {
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  padding: 10px 0;
}

.faq-question {
  font-weight: 600;
  color: #e5e7eb;
}

.faq-answer {
  color: #9ca3af;
  margin-top: 3px;
  font-size: 0.93rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
  grid-gap: 24px;
}

.contact-panel {
  border-radius: 16px;
  border: 1px solid rgba(55,65,81,0.9);
  padding: 16px 16px 14px;
  background: rgba(15,23,42,0.9);
}

.contact-panel ul {
  padding-left: 18px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.contact-placeholder-form {
  border-radius: 16px;
  border: 1px dashed rgba(75,85,99,0.9);
  padding: 18px 16px;
  text-align: left;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0,1fr);
  }
  .hero-right {
    order: -1;
  }
  .role-layout,
  .faq-grid,
  .contact-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-nav {
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}

/* === SelaroDesk Ultra Mega Menu === */

.site-nav {
  position: relative;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #cbd5f5;
  padding: 6px 0;
  font-weight: 500;
}

.main-menu > li > a:hover {
  color: #ffffff;
}

.has-mega > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: #9ca3af transparent transparent transparent;
}

.has-mega:hover > a::after {
  border-top-color: #ffffff;
}

.mega-panel {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 8px);
  background: #f9fafb;
  color: #111827;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15,23,42,0.45);
  padding: 24px 32px 28px;
  width: min(1120px, 94vw);
  z-index: 1000;
}

.has-mega:hover .mega-panel {
  display: block;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}

.mega-col-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  background: #e5e7eb;
  color: #111827;
}

.mega-col-text {
  font-size: 0.86rem;
  color: #4b5563;
  margin: 0 0 10px 0;
}

.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-links li + li {
  margin-top: 6px;
}

.mega-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.mega-links a span {
  font-weight: 400;
  color: #6b7280;
  margin-left: 8px;
}

.mega-links a:hover {
  color: #1f2937;
}

.mega-footer-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.mega-footer-link:hover {
  text-decoration: underline;
}

.mega-single {
  max-width: 420px;
}

.mega-single .mega-links li {
  margin-bottom: 10px;
}

.mega-single .mega-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(148,163,184,0.25);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .main-menu {
    flex-wrap: wrap;
    gap: 12px;
  }
  .mega-panel {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 12px;
  }
  .mega-columns {
    grid-template-columns: minmax(0,1fr);
  }
}

/* === Home page spacing overrides === */

.home .hero {
  padding-top: 32px !important;
  padding-bottom: 10px !important;
}

.home .section {
  margin-top: 24px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Remove extra top margin Gutenberg sometimes adds between groups */
.home .section > .wp-block-group,
.home .section > .wp-block-columns {
  margin-top: 0 !important;
}

/* Tighten header spacing inside sections */
.home .section-header {
  margin-bottom: 12px !important;
}

/* === Hard spacing overrides (global) === */

/* Hero closer to the next section */
.hero {
  padding-top: 32px !important;
  padding-bottom: 8px !important;
}

/* Sections closer together */
.section {
  margin-top: 20px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Kill extra margins Gutenberg adds between groups/columns */
.wp-block-group,
.wp-block-columns {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Add a small, consistent gap between stacked sections */
.section + .section {
  margin-top: 24px !important;
}

/* Tighten headings inside sections */
.section-title {
  margin-top: 0 !important;
}

.section-header {
  margin-bottom: 10px !important;
}

/* === Ultra tight spacing overrides === */

.hero {
  padding-top: 24px !important;
  padding-bottom: 0 !important;
}

.section {
  margin-top: 8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.section + .section {
  margin-top: 12px !important;
}

.wp-block-group,
.wp-block-columns {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.section-header {
  margin-bottom: 6px !important;
}

.section-title {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.section-subtitle {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.section p {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* === Nav Login / Free Trial buttons (same page, different styles) === */
.site-nav .nav-login > a {
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.site-nav .nav-login > a:hover {
  background: #ffffff;
  color: #111827;
  text-decoration: none;
}

.site-nav .nav-free-trial > a {
  padding: 7px 20px;
  margin-left: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(248, 113, 113, 0.45);
}

.site-nav .nav-free-trial > a:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* =========================================================
   SelaroDesk Login Page (GorillaDesk-style form)
   ========================================================= */

body.page-login {
  background: #f9fafb;
  color: #111827;
}

body.page-login .site-main {
  max-width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  background: #f9fafb;
}

.sel-login-page {
  min-height: calc(100vh - 120px); /* header/footer space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sel-login-card {
  max-width: 480px;
  width: 100%;
  margin: 32px auto;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  background: #f9fafb;
  border-radius: 24px;
}

/* Social buttons */

.sel-login-social-row {
  gap: 16px;
}

.sel-login-social .wp-block-button__link {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

/* Free trial button inside card */

.sel-login-trial-btn .wp-block-button__link {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(248, 113, 113, 0.45);
}

.sel-login-trial-btn .wp-block-button__link:hover {
  filter: brightness(1.05);
}

/* Core login form styles */

.sel-login-card form.login {
  margin-top: 8px;
}

/* Hide labels – we use placeholders instead */
.sel-login-card form.login label {
  display: none !important;
}

/* GorillaDesk-style input fields */
.sel-login-card form.login input[type="text"],
.sel-login-card form.login input[type="password"] {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
}

.sel-login-card form.login input::placeholder {
  color: #9ca3af;
  font-size: 15px;
}

.sel-login-card form.login input[type="text"]:focus,
.sel-login-card form.login input[type="password"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

/* Remember checkbox + submit button */

.sel-login-card .login-remember {
  font-size: 12px;
  color: #374151;
}

.sel-login-card .login-remember input[type="checkbox"] {
  margin-right: 4px;
}

.sel-login-card .login-submit input[type="submit"] {
  width: 100%;
  border-radius: 999px;
  background: #6366f1;
  border: none;
  padding: 10px 0;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.sel-login-card .login-submit input[type="submit"]:hover {
  background: #4f46e5;
}

/* Make all text in the card dark by default */

.sel-login-card,
.sel-login-card * {
  color: #111827;
}

/* Lighter separator lines */

.sel-login-card hr.wp-block-separator {
  border-color: #e5e7eb;
}

/* Login divider: single row "Or" with lines left/right */
.sel-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;          /* make the group span the full card width */
  margin: 24px 0;
}

.sel-login-divider p {
  margin: 0;
  white-space: nowrap;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

/* draw the lines on each side */
.sel-login-divider::before,
.sel-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Make the Free Trial button full width like the Log In button */
.sel-login-card .wp-block-buttons {
  width: 100%;
}

.sel-login-card .wp-block-buttons .wp-block-button {
  width: 100%;
}

.sel-login-card .sel-login-trial-btn .wp-block-button__link {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Make email + password fields full width (matching Login button) */
.sel-login-card form.login p {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0;
}

.sel-login-card form.login input[type="text"],
.sel-login-card form.login input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.sel-login-card form.login input[type="text"],
.sel-login-card form.login input[type="password"] {
    border-radius: 999px !important;
}

/* === Fix widths & styling for Email / Password fields === */

.sel-login-card #loginform {
  width: 100%;
}

/* Make each wrapper <p> full-width */
.sel-login-card #loginform p {
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px 0;
}

/* Hide labels (we use placeholders instead) */
.sel-login-card #loginform label {
  display: none !important;
}

/* Inputs: full width, same style as GorillaDesk */
.sel-login-card #loginform .input,
.sel-login-card #loginform input[type="text"],
.sel-login-card #loginform input[type="password"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;

  height: 48px;
  border-radius: 8px;          /* change to 999px if you want pill shape */
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
}

/* Placeholder style */
.sel-login-card #loginform input::placeholder {
  color: #9ca3af;
  font-size: 15px;
}

/* =========================================================
   SelaroDesk Registration Form
   ========================================================= */

.sel-register-form {
  max-width: 480px;
  margin: 0 auto;
}

.sel-register-form p {
  margin: 0 0 12px 0;
}

.sel-register-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #374151;
}

/* Inputs: same style as login fields */
.sel-register-form input[type="text"],
.sel-register-form input[type="email"],
.sel-register-form input[type="password"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  height: 48px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
}

.sel-register-form input[type="text"]::placeholder,
.sel-register-form input[type="email"]::placeholder,
.sel-register-form input[type="password"]::placeholder {
  color: #9ca3af;
  font-size: 15px;
}

.sel-register-form input[type="text"]:focus,
.sel-register-form input[type="email"]:focus,
.sel-register-form input[type="password"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

/* Submit button */
.sel-register-submit {
  margin-top: 8px;
}

.sel-register-submit .button.button-primary,
.sel-register-submit button,
.sel-register-submit input[type="submit"] {
  width: 100%;
  border-radius: 999px;
  background: #6366f1;
  border: none;
  padding: 10px 0;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.sel-register-submit .button.button-primary:hover,
.sel-register-submit button:hover,
.sel-register-submit input[type="submit"]:hover {
  background: #4f46e5;
}

/* Error + success messages */
.sel-register-errors {
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.sel-register-errors ul {
  margin: 0;
  padding-left: 18px;
}

.sel-register-success {
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

/* Trial badge on dashboard */
.sel-trial-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef2ff;
  color: #312e81;
  border: 1px solid #c7d2fe;
  gap: 6px;
}

.sel-trial-badge.sel-trial-expired {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* =========================================================
   SelaroDesk Dashboard UI
   ========================================================= */

.sd-dashboard-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.sd-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.sd-dashboard-title-block {
  max-width: 640px;
}

.sd-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin: 0 0 4px 0;
}

.sd-dash-title {
  font-size: 1.8rem;
  margin: 0 0 6px 0;
  color: #e5e7eb;
}

.sd-dash-subtitle {
  margin: 0;
  font-size: 0.94rem;
  color: #9ca3af;
}

.sd-dashboard-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Card grid */

.sd-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.sd-card {
  border-radius: 16px;
  border: 1px solid rgba(75, 85, 99, 0.6);
  padding: 14px 14px 12px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.08), rgba(15,23,42,1));
  text-decoration: none;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.sd-card--primary {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(37,99,235,0.4);
}

.sd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.7);
  border-color: rgba(96,165,250,0.9);
  text-decoration: none;
}

.sd-card-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.sd-card-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sd-card-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: #e5e7eb;
}

.sd-card-label {
  font-size: 0.95rem;
  color: #d1d5db;
}

.sd-card-note {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Links row */

.sd-dashboard-links-row {
  margin-top: 24px;
}

.sd-dashboard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-link-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(75,85,99,0.7);
  color: #e5e7eb;
  text-decoration: none;
  background: rgba(15,23,42,0.8);
}

.sd-link-chip:hover {
  border-color: rgba(96,165,250,0.9);
  text-decoration: none;
}

.sd-link-chip--danger {
  border-color: #fecaca;
  color: #fecaca;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .sd-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sd-dashboard-meta {
    justify-content: flex-start;
  }
}

/* =========================================================
   SelaroDesk Dashboard Shell + Sidebar
   ========================================================= */

.sd-dashboard-shell {
  display: flex;
  min-height: calc(100vh - 100px); /* leave room for header/footer */
  background: #f3f4f6;
}

/* Sidebar */

.sd-sidebar {
  width: 260px;
  background: #e5e7eb;
  border-right: 1px solid #d4d4d8;
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sd-sidebar-top {
  padding: 8px 10px 4px;
}

.sd-sidebar-appname {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.sd-sidebar-role {
  font-size: 0.85rem;
  color: #6b7280;
}

.sd-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.sd-sidebar-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 12px 6px 4px;
}

.sd-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  margin: 1px 2px;
}

.sd-sidebar-icon {
  width: 20px;
  text-align: center;
  opacity: 0.9;
}

.sd-sidebar-link:hover {
  background: #d4d4ff;
  color: #111827;
}

.sd-sidebar-link--active {
  background: #4c1d95;
  color: #f9fafb;
}

.sd-sidebar-link--active .sd-sidebar-icon {
  opacity: 1;
}

/* Main area */

.sd-dashboard-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* Reuse existing dashboard layout inside main */
.sd-dashboard-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  width: 100%;
}

/* =========================================================
   SelaroDesk Dashboard – make shell full-width on page 1708
   ========================================================= */

body.page-id-1708 {
  background: #020617;   /* keep dark outer background */
  color: #e5e7eb;
}

/* Remove side padding from the main area on this page */
body.page-id-1708 .site-main {
  max-width: 100%;
  padding-top: 0;
  padding-bottom: 40px;
  padding-left: 0;
  padding-right: 0;
}

/* Full-bleed dashboard shell: stretch to full viewport width
   even though it's inside a centered container */
body.page-id-1708 .sd-dashboard-shell {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: calc(100vh - 100px);
}

/* =========================================================
   Force SelaroDesk dashboard shell full-width
   ========================================================= */

/* Prevent horizontal scroll when we do the full-bleed trick */
body {
  overflow-x: hidden;
}

/* Make the dashboard shell stretch edge-to-edge on any page */
.sd-dashboard-shell {
  position: relative;
  width: 100vw;          /* full viewport width */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: calc(100vh - 100px);
  background: #f3f4f6;   /* light grey behind sidebar + cards */
}
