/* ==========================================================================
   DESIGN SYSTEM - PARQUE ESPLANADA ORÇAMENTO PORTAL
   Vanilla CSS Premium (Glassmorphism, Slate Dark Theme, Harmony Colors)
   ========================================================================== */

/* Variables & Design Tokens */
:root {
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Palette */
  --bg-main: #070a13;
  --bg-card: rgba(13, 20, 38, 0.6);
  --bg-card-hover: rgba(20, 30, 58, 0.75);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-glow: rgba(6, 182, 212, 0.25);
  
  --color-primary: #38bdf8;
  --color-primary-rgb: 56, 189, 248;
  --color-accent: #06b6d4;
  --color-accent-rgb: 6, 182, 212;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  /* Effects */
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
  --blur-radius: 20px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.dark-theme {
  --bg-main: #070a13;
  --text-main: #f8fafc;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.4);
}

/* Mesh Background Gradient Effects */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.mesh-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  animation: floatGlow 15s infinite alternate ease-in-out;
}

.mesh-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Core Layout Wrappers */
.hidden {
  display: none !important;
}

/* Utility Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-accent:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 14px;
}

/* Spinner Loader inside buttons */
.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}
.spinner .path {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Input Fields styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background-color: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-control[readonly] {
  background-color: rgba(255, 255, 255, 0.03);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.3);
  cursor: not-allowed;
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

/* Alert Boxes styling */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 15px;
  animation: slideDown var(--transition-fast);
}
.alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

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

/* ==========================================================================
   AUTHENTICATION SCREEN (OTP LOGIN UI)
   ========================================================================== */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  z-index: 10;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  transition: border-color var(--transition-normal);
  position: relative;
}
.auth-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

.auth-header {
  margin-bottom: 30px;
}

.logo-badge {
  width: 70px;
  height: 70px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.logo-icon {
  width: 38px;
  height: 38px;
}

.main-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.auth-step {
  display: none;
  animation: fadeIn var(--transition-normal);
}
.auth-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.auth-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.highlight-email {
  color: var(--color-primary);
}

/* Custom OTP Digit Fields styling */
.otp-inputs-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 25px 0;
}

.otp-field {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: monospace;
  background-color: rgba(10, 15, 30, 0.7);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  transition: var(--transition-fast);
}
.otp-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 13px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.btn-link:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  text-decoration: none;
}

.btn-back {
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 13px;
}
.btn-back:hover {
  color: var(--text-main);
}

.countdown-timer {
  color: var(--text-muted);
}

/* Local Development Demo Box */
.demo-card {
  margin-top: 30px;
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  text-align: left;
  animation: slideDown 0.4s ease;
}

.demo-card-icon {
  font-size: 20px;
}

.demo-card-content h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #fca5a5;
  margin-bottom: 4px;
}

.demo-card-content p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-code-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.demo-code-wrapper strong {
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: var(--color-warning);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ==========================================================================
   SECURE MAIN DASHBOARD (PORTAL UNLOCKED)
   ========================================================================== */
.dashboard-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 10;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
}

/* App Header Styles */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.logo-badge-sm {
  width: 40px;
  height: 40px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-status-badges {
  display: flex;
  gap: 10px;
}

.badge {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-pulse {
  background-color: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
  position: relative;
}
.badge-pulse::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulsePoint 1.5s infinite;
}

@keyframes pulsePoint {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.badge-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.user-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.user-role {
  font-size: 11px;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.btn-logout:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
}

/* App Sub-Navigation Menu (Tabs) */
.app-nav {
  margin-bottom: 20px;
}

.tabs-list {
  display: flex;
  background-color: rgba(10, 15, 30, 0.5);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 16px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.tab-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.03);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(2, 132, 199, 0.15) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
}

/* Content Area */
.app-content {
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn var(--transition-normal);
}
.tab-pane.active {
  display: block;
}

.section-header {
  margin-bottom: 30px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 4px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Welcome Banner card inside calculator */
.welcome-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid var(--border-color-glow);
  border-radius: 20px;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}
.welcome-banner h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
  color: #ffffff;
}
.welcome-banner p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 750px;
}
.banner-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 180px;
}
.meta-item {
  font-size: 13px;
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   TAB 1: DYNAMIC CALCULATOR GRID
   ========================================================================== */
.calculator-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc-config-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Proposal Cards */
.proposal-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition-fast);
}
.proposal-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.card-header-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 20px;
}

.card-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Pill Toggle Button styling (Monthly vs Annual) */
.billing-toggle-container {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 12px;
}

.toggle-label {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
}
.toggle-label.active {
  background-color: #38bdf8;
  color: var(--text-dark);
}

.badge-saving {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

/* Toggle Switch Hide standard checkbox */
.switch {
  position: relative;
  display: none; /* Just using direct clicks on labels */
}

/* Micro credit card warning card */
.payment-note {
  display: flex;
  gap: 12px;
  background-color: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 15px;
}
.payment-note-icon {
  font-size: 16px;
}
.payment-note-text {
  font-size: 12.5px;
  color: #a5f3fc;
  line-height: 1.5;
}

/* Account Plan Config Rows */
.accounts-config-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-config-row {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
}
.account-config-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.2);
}

.acc-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.acc-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acc-avatar {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-primary);
}

.acc-details {
  display: flex;
  flex-direction: column;
}

.acc-email {
  font-family: monospace;
  font-size: 13.5px;
  color: #f8fafc;
}

.acc-owner {
  font-size: 12px;
  color: var(--text-muted);
}
.acc-owner strong {
  color: #cbd5e1;
}

.acc-plan-select-wrapper {
  min-width: 220px;
}

.custom-select {
  width: 100%;
  padding: 10px 14px;
  background-color: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}
.custom-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.acc-row-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.acc-reason {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 70%;
}
.acc-reason strong {
  color: var(--color-primary);
}

.acc-features-indicator {
  display: flex;
  gap: 6px;
}
.feature-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.feature-pill-green {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.feature-pill-red {
  background-color: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* Skeleton loader for accounts dynamic pull */
.account-skeleton-loader {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}
.skeleton-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  border-radius: 6px;
  animation: shimmer 1.5s infinite alternate;
}
.w-full { width: 100%; }
.w-2/3 { width: 66%; }
@keyframes shimmer {
  0% { opacity: 0.5; }
  100% { opacity: 0.8; }
}

/* Engineering Services checklist cards */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: var(--transition-fast);
}
.service-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.service-checkbox-wrapper {
  padding-top: 2px;
}

/* Styled checkbox indicators */
.service-checked-box {
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10b981;
  color: #10b981;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.service-info {
  flex: 1;
}

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 15px;
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

.service-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #38bdf8;
  white-space: nowrap;
}

.service-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* STICKY BUDGET SUMMARY CARD RIGHT PANEL */
.calc-summary-column {
  position: sticky;
  top: 20px;
  z-index: 5;
}

.sticky-card {
  background: linear-gradient(145deg, rgba(13, 20, 38, 0.8) 0%, rgba(7, 10, 19, 0.95) 100%);
  backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-color-glow);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.summary-header h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
}
.version-pill {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
}

.total-row-card {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.recurring-card {
  background-color: rgba(6, 182, 212, 0.04);
  border-color: rgba(6, 182, 212, 0.15);
}

.services-card {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
}

.hardware-card-summary {
  background-color: rgba(245, 158, 11, 0.03);
  border-color: rgba(245, 158, 11, 0.15);
}

.row-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.price-value-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
}

.price-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.period {
  font-size: 14px;
  color: var(--text-muted);
}

.price-breakdown-mini {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}
.breakdown-item span {
  color: #cbd5e1;
}

.card-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.hardware-sum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.hardware-sum-header .row-label {
  margin-bottom: 0;
}
.hardware-note-txt {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.status-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.status-yellow {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.summary-actions {
  margin-top: 24px;
  text-align: center;
}

.approval-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   TAB 2: SHAREPOINT FILES HIERARCHY TREE VIEW
   ========================================================================== */
.sharepoint-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.sp-tree-card, .sp-details-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  min-height: 480px;
  box-shadow: var(--shadow-lg);
}

.sp-tree-card h3, .sp-details-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 4px;
}

.small-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sp-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-folder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.sp-folder-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(4px);
}
.sp-folder-item.active {
  background-color: rgba(6, 182, 212, 0.08);
  border-color: var(--color-accent);
}

.folder-icon {
  font-size: 20px;
  transition: var(--transition-fast);
}
.sp-folder-item.active .folder-icon {
  transform: scale(1.15);
}

.folder-info {
  display: flex;
  flex-direction: column;
}

.folder-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

.folder-owner-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* SharePoint Details View Pane */
.folder-details-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  text-align: center;
}

.placeholder-icon {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
  animation: floatIcon 3s infinite alternate ease-in-out;
}

@keyframes floatIcon {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

.folder-details-placeholder h3 {
  font-size: 16px;
  color: var(--text-muted);
}
.folder-details-placeholder p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 320px;
  margin: 0 auto;
}

.folder-details-wrapper {
  animation: fadeIn var(--transition-normal);
}

.folder-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.folder-icon-large {
  font-size: 40px;
}

.sp-path {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}
#detail-folder-path {
  color: var(--color-primary);
}

.folder-description-block {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.folder-description-block h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: #38bdf8;
  margin-bottom: 6px;
}
.folder-description-block p {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}

.folder-permissions-block h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: #38bdf8;
  margin-bottom: 12px;
}

/* Permissions Matrix Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.permissions-table th {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.permissions-table td {
  font-size: 13px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.perm-user {
  font-weight: 500;
  color: #ffffff;
}

.perm-access-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.tag-full {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.tag-write {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.tag-blocked {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ==========================================================================
   TAB 3: HARDWARE DEFINITION PAGE (NO VALUE GRID)
   ========================================================================== */
.hardware-status-banner {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-glow {
  width: 10px;
  height: 10px;
  background-color: var(--color-warning);
  border-radius: 50%;
  animation: statusPulse 1.2s infinite;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.4); opacity: 0.5; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); opacity: 0; }
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.hardware-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: var(--transition-fast);
}
.hardware-card:hover {
  border-color: rgba(245, 158, 11, 0.25);
  transform: translateY(-4px);
}

.hw-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
}

.hw-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.hw-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 8px;
}

.hw-spec-body {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.6;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
  flex: 1;
}

.hw-justification {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.hw-justification strong {
  color: var(--color-primary);
}

/* Ergonomic block tip styles */
.ergo-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.ergo-icon {
  font-size: 32px;
}

.ergo-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #34d399;
  margin-bottom: 6px;
}

.ergo-content p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ==========================================================================
   TAB 4: DYNAMIC TIMELINE
   ========================================================================== */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
  animation: slideUp var(--transition-normal);
}

.timeline-marker {
  position: absolute;
  left: 16px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item.active .timeline-marker {
  background-color: rgba(6, 182, 212, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.timeline-item.completed .timeline-marker {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-radius));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-fast);
}
.timeline-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateX(4px);
}

.timeline-item.active .timeline-card {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.05);
}

.timeline-header-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.timeline-phase {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-duration {
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 12px;
}

.timeline-content-block {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.timeline-tasks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-tasks-list li {
  font-size: 12.5px;
  color: #cbd5e1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.timeline-tasks-list li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   SUCCESS MODAL DIALOG (PROPOSAL APPROVED STATE)
   ========================================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(7, 10, 19, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 28px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(16, 185, 129, 0.1);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal-description {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 24px;
}

.approved-summary-box {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.approved-summary-box h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #10b981;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.approved-summary-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.approved-summary-box li {
  font-size: 13px;
  color: #e2e8f0;
}
.approved-summary-box li span {
  color: #ffffff;
}

.next-step-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Success Checkmark Circle Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #10b981;
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotatePlaceholder 4.25s ease-in;
}

.success-checkmark .check-icon .icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(16, 185, 129, 0.2);
  box-sizing: content-box;
  position: absolute;
}

.success-checkmark .check-icon .icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: #10b981;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

@keyframes icon-line-tip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 50px; left: 8px; top: 37px; }
  84% { width: 17px; left: 21px; top: 48px; }
  100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 55px; right: 0px; top: 35px; }
  100% { width: 47px; right: 8px; top: 38px; }
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE FRIENDLY QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-summary-column {
    position: static;
  }
  
  .sharepoint-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    text-align: center;
  }
  
  .header-logo {
    justify-content: center;
  }
  
  .header-status-badges {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .header-user {
    justify-content: center;
  }
  
  .user-info {
    text-align: center;
  }
  
  .tabs-list {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: none;
    width: calc(50% - 2px);
    font-size: 13px;
    padding: 10px;
  }
  
  .welcome-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    text-align: center;
  }
  .welcome-banner p {
    margin-bottom: 12px;
  }
  .banner-meta {
    align-items: center;
  }
  
  .acc-row-main {
    flex-direction: column;
    align-items: stretch;
  }
  
  .acc-plan-select-wrapper {
    width: 100%;
  }
  
  .acc-row-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .acc-reason {
    max-width: 100%;
  }
  
  .service-card {
    align-items: flex-start;
  }
  
  .service-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .ergo-card {
    flex-direction: column;
    text-align: center;
  }
  
  .timeline-container::before {
    left: 21px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 6px;
  }
  
  .timeline-header-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
