/* Professional Theme for Engineer and Business Partner */

:root {
  --prof-bg: #0f172a;
  --prof-card: rgba(30, 41, 59, 0.7);
  --prof-card-border: rgba(255, 255, 255, 0.1);
  --prof-accent: #38bdf8;
  --prof-accent-glow: rgba(56, 189, 248, 0.3);
  --prof-text: #f8fafc;
  --prof-text-muted: #94a3b8;
  --prof-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --prof-sidebar: #1e293b;
  --prof-header: rgba(15, 23, 42, 0.8);
  --prof-success: #10b981;
  --prof-warning: #f59e0b;
  --prof-error: #ef4444;
  --prof-radius: 12px;
  --prof-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Base Styles for Professional Dashboards */
.v910-role-partner,
.v910-role-engineer {
  background: var(--prof-bg) !important;
  color: var(--prof-text) !important;
  font-family: 'Inter', 'Outfit', sans-serif !important;
}

/* Header Refinement */
.v910-role-partner .v910-header,
.v910-role-engineer .v910-header {
  background: var(--prof-header) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--prof-card-border) !important;
  padding: 0.75rem 2rem !important;
}

.v910-brand {
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  text-transform: lowercase !important;
  color: var(--prof-text) !important;
  font-size: 1.5rem !important;
}

.v910-brand small.v910-superadmin-chip {
  background: var(--prof-accent) !important;
  color: #000 !important;
  font-size: 0.6rem !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  margin-left: 8px !important;
}

/* Sidebar Professionalism */
.v910-sidebar {
  background: var(--prof-sidebar) !important;
  border-right: 1px solid var(--prof-card-border) !important;
  width: 280px !important;
}

.v910-sidebar-profile {
  padding: 2rem 1.5rem !important;
  border-bottom: 1px solid var(--prof-card-border) !important;
}

.v910-avatar-fallback {
  background: linear-gradient(135deg, var(--prof-accent), #818cf8) !important;
  color: white !important;
  font-weight: 700 !important;
}

.v910-side-link {
  margin: 0.25rem 1rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: var(--prof-radius) !important;
  transition: all 0.2s ease !important;
  color: var(--prof-text-muted) !important;
}

.v910-side-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--prof-text) !important;
}

.v910-side-link.active {
  background: var(--prof-accent) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px var(--prof-accent-glow) !important;
}

.v910-side-link.active span {
  filter: brightness(0) !important;
}

/* Main Content Area */
.v910-main {
  padding: 2rem !important;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(129, 140, 248, 0.05), transparent 40%) !important;
}

.v910-title-block h1 {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 0.5rem !important;
}

.v910-title-block .eyebrow {
  color: var(--prof-accent) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

/* Cards & Panels */
.card,
.v910-filter-card,
.v910-map-card,
.v910-priority-card,
.v910-velocity-card,
.v122-stats-card,
.v910-detail-card {
  background: var(--prof-card) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--prof-card-border) !important;
  border-radius: var(--prof-radius) !important;
  box-shadow: var(--prof-shadow) !important;
  overflow: hidden !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--prof-bg);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Extreme Premium Redesign for Registration Pages */
.partner-reg-page.v910-login-shell,
.engineer-reg-page.v910-login-shell {
  background: linear-gradient(135deg, #090e1a 0%, #0f172a 100%) !important;
  color: #f8fafc !important;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh !important;
  display: block !important;
}

.pro3d-mesh-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

.pro3d-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.pro3d-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--prof-accent), transparent 70%);
  animation: prof-float 15s infinite alternate ease-in-out;
}

.pro3d-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, #818cf8, transparent 70%);
  animation: prof-float 20s infinite alternate-reverse ease-in-out;
}

@keyframes prof-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 40px) scale(1.1); }
}

.v910-login-grid {
  position: relative;
  z-index: 10;
  max-width: 1440px !important;
  width: 95% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1.15fr !important;
  gap: 6rem !important;
  padding: 6rem 2rem !important;
  align-items: flex-start;
}

.reg-pro-hero {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2rem;
  width: 100% !important;
  min-width: 400px !important;
}

.reg-pro-hero h1 {
  font-size: 5rem !important;
  font-weight: 900 !important;
  line-height: 0.9 !important;
  margin-bottom: 1.5rem !important;
  color: #fff !important;
  letter-spacing: -0.05em !important;
  text-transform: uppercase;
}

.partner-reg-page .reg-pro-hero h1 span {
  display: block;
  background: linear-gradient(to right, #60a5fa, var(--prof-accent)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.engineer-reg-page .reg-pro-hero h1 span {
  display: block;
  background: linear-gradient(to right, #818cf8, #c084fc) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.reg-pro-hero p {
  font-size: 1.25rem !important;
  line-height: 1.6 !important;
  color: var(--prof-text-muted) !important;
  max-width: 500px !important;
  margin-bottom: 2.5rem !important;
}

/* Card Styling */
.antigravity-card {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5) !important;
  padding: 3.5rem !important;
  border-radius: 32px !important;
}

.antigravity-card h2 {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem !important;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.antigravity-card > p {
  color: var(--prof-text-muted) !important;
  margin-bottom: 2.5rem !important;
  font-size: 1.05rem;
}

/* Form Elements */
.form label span,
.engineer-reg-grid label span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--prof-accent);
  margin-bottom: 0.6rem;
}

.engineer-reg-page label span {
  color: #818cf8;
}

.form input, .form select, .form textarea,
.engineer-reg-page input, .engineer-reg-page select, .engineer-reg-page textarea {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1.1rem 1.2rem !important;
  font-size: 1rem !important;
  border-radius: 12px !important;
  color: #fff !important;
  width: 100%;
  transition: all 0.3s ease;
}

.form input:focus, .form select:focus, .form textarea:focus {
  background: rgba(0, 0, 0, 0.4) !important;
  border-color: var(--prof-accent) !important;
  box-shadow: 0 0 0 4px var(--prof-accent-glow) !important;
}

.engineer-reg-page input:focus, .engineer-reg-page select:focus, .engineer-reg-page textarea:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2) !important;
}

/* Grids */
.form .split, .engineer-reg-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.engineer-reg-grid label.full {
  grid-column: 1 / -1 !important;
}

/* Sections */
.reg-pro-section {
  background: rgba(255, 255, 255, 0.02) !important;
  padding: 2.5rem !important;
  border-radius: 24px !important;
  margin: 2.5rem 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Chips & Badges */
.pro3d-stat-chip {
  display: inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #fff;
  margin-right: 12px;
  margin-bottom: 12px;
}

.pro3d-stat-chip strong {
  color: var(--prof-accent);
}

/* Section Header styling for forms */
.reg-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.reg-section-head > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.reg-section-step {
  width: 36px;
  height: 36px;
  background: var(--prof-accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
}

.reg-section-head h3 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
}

.reg-section-chip {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--prof-text-muted);
}

.file-preview {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.file-preview span {
  font-size: 0.75rem;
  color: var(--prof-text-muted);
}

.file-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Landing Page Desktop Optimization - Fit in one screen */
@media (min-width: 1024px) {
  .v122-login-shell {
    height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .v910-login-grid {
    flex: 1 !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    height: calc(100vh - 160px) !important;
    overflow: hidden !important;
  }

  .pro3d-landing {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    gap: 1rem !important;
    overflow-y: auto !important;
  }

  .pro3d-hero {
    padding: 0 !important;
    margin: 0 !important;
  }

  .pro3d-title {
    font-size: 3rem !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
  }

  .pro3d-subtitle {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    max-width: 500px !important;
  }

  .pro3d-hero-actions {
    margin-bottom: 1rem !important;
  }

  .pro3d-flow-section {
    margin: 0 !important;
  }

  .pro3d-flow-card {
    padding: 1rem !important;
  }

  .pro3d-features {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin: 0 !important;
  }

  .pro3d-feature-card {
    padding: 0.75rem !important;
  }

  .pro3d-feature-card h3 {
    font-size: 1rem !important;
    margin: 0 !important;
  }

  .pro3d-feature-card p {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    margin: 4px 0 0 0 !important;
  }

  .pro3d-services {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0.75rem !important;
    margin: 0 !important;
  }

  .pro3d-service-card {
    padding: 0.5rem !important;
  }

  .pro3d-service-card strong {
    font-size: 0.8rem !important;
  }

  .pro3d-service-icon {
    font-size: 1.25rem !important;
  }

  .reg-pro-hero h1 {
    font-size: 3.5rem !important;
  }

  .landing-ticket-card {
    padding: 1.2rem !important;
    margin-top: 1rem !important;
  }

  .landing-ticket-card strong {
    font-size: 1.4rem !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .v910-login-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    padding: 4rem 1.5rem !important;
  }
}

@media (max-width: 600px) {
  .form .split, .engineer-reg-grid {
    grid-template-columns: 1fr !important;
  }
  .antigravity-card {
    padding: 2rem !important;
  }
}