@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #030712;
  --bg-2: #0a1024;
  --card: rgba(17, 24, 39, 0.55);
  --card-strong: rgba(10, 16, 36, 0.82);
  
  --accent: #FF6633;
  --accent-light: #FF9966;
  --accent-dark: #E64A19;
  --accent-glow: rgba(255, 102, 51, 0.2);
  
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 102, 51, 0.14);
  
  --status-completed: #10b981;
  --status-completed-bg: rgba(16, 185, 129, 0.1);
  --status-current: #FF6633;
  --status-current-bg: rgba(255, 102, 51, 0.1);
  --status-pending: #4b5563;
  --status-pending-bg: rgba(75, 85, 99, 0.1);
  --status-unpaid: #ef4444;
  --status-unpaid-bg: rgba(239, 68, 68, 0.1);
  
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 102, 51, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    radial-gradient(at 50% 50%, var(--bg-2) 0px, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* App Container */
#app {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* Glassmorphism Card Base */
.glass-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 102, 51, 0.2);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shimmer {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* DC Logo Styles (Exactly from original website) */
.dc-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transition: all 0.3s;
  cursor: pointer;
  user-select: none;
}

.dc-letters {
  display: flex;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.d-letter {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c-letter {
  color: rgba(255, 255, 255, 0.95);
  margin-left: -3px;
}

.dc-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent-light) 50%, var(--accent) 80%, transparent 100%);
  margin: 4px 0;
  transition: all 0.3s;
}

.dc-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.dc-logo:hover .dc-letters {
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(255, 102, 51, 0.7);
}

.dc-logo:hover .dc-tagline {
  color: #fff;
}

/* LOGIN SCREEN */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.logo-area {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-step {
  display: none;
  width: 100%;
}

.login-step.active {
  display: block;
  animation: fadeIn 0.35s ease-out forwards;
}

.login-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  font-family: var(--font-head);
  color: #fff;
}

.login-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form inputs */
.form-group {
  margin-bottom: 24px;
  text-align: left;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.phone-prefix-badge {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.form-control.phone-with-prefix {
  padding-left: 95px !important;
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
  box-shadow: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  background: rgba(3, 7, 18, 0.9);
}

/* Buttons (Adapted from original .btn styles) */
.btn-primary {
  width: 100%;
  padding: 16px 28px;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px -8px rgba(255, 102, 51, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #FF7E45;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -8px rgba(255, 102, 51, 0.65);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  border-color: rgba(255, 102, 51, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.text-link {
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.text-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* OTP Code inputs */
.otp-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.otp-input {
  width: 56px;
  height: 56px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition-smooth);
}

.otp-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.sms-timer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Alert error */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
  text-align: left;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* DASHBOARD HEADER & LAYOUT */
.dashboard-container {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.5s ease-out forwards;
}

.dashboard-container.active {
  display: flex;
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: var(--card-strong);
  border-color: var(--border-accent);
}

.client-meta {
  display: flex;
  flex-direction: column;
}

.project-tag {
  font-size: 0.8rem;
  background: rgba(255, 102, 51, 0.08);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
  width: fit-content;
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Layout Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar Nav */
.sidebar-nav {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.nav-item svg {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 102, 51, 0.08);
  border-left: 3px solid var(--accent);
}

.nav-item.active svg {
  color: var(--accent);
}

/* Tab Panels */
.tab-content {
  padding: 30px;
  min-height: 550px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

/* SECTION HEADINGS */
.section-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* OVERVIEW TAB CONTENT */
.overview-summary {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.summary-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.info-item {
  background: rgba(3, 7, 18, 0.4);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 4px;
  color: #fff;
}

/* Project Stepper */
.stepper-container {
  padding: 24px;
  margin-bottom: 24px;
}

.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 16px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-item.completed .step-icon {
  background: var(--status-completed-bg);
  border-color: var(--status-completed);
  color: var(--status-completed);
}

.step-item.current .step-icon {
  background: var(--status-current-bg);
  border-color: var(--status-current);
  color: #fff;
  box-shadow: 0 0 18px var(--accent-glow);
  animation: pulseGold 2s infinite;
}

.step-item.pending .step-icon {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.step-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-head);
}

.step-item.completed .step-name {
  color: var(--text);
}

.step-item.current .step-name {
  color: var(--accent);
}

.step-item.pending .step-name {
  color: var(--text-muted);
}

.step-detail-card {
  padding: 20px;
  margin-top: 24px;
  background: rgba(255, 102, 51, 0.02);
  border: 1px solid var(--border-accent);
}

/* REALIZATIONS (PHOTOS) TAB */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-card:hover {
  border-color: var(--border-accent);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-info {
  padding: 12px 16px;
  background: rgba(3, 7, 18, 0.9);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.gallery-caption {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.gallery-phase {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* DOCUMENTS TAB */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(10, 16, 36, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.doc-card:hover {
  background: rgba(10, 16, 36, 0.5);
  border-color: var(--border-accent);
}

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

.doc-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 102, 51, 0.05);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.doc-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.doc-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}

.badge-completed { background: var(--status-completed-bg); color: var(--status-completed); }
.badge-current { background: var(--status-current-bg); color: var(--accent); }
.badge-unpaid { background: var(--status-unpaid-bg); color: #f87171; }
.badge-pending { background: var(--status-pending-bg); color: var(--text-muted); }

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

/* SCHEDULE TAB */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 24px;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.schedule-item {
  position: relative;
}

.schedule-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
}

.schedule-item.done .schedule-dot {
  border-color: var(--status-completed);
  background: var(--status-completed);
}

.schedule-item.upcoming .schedule-dot {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 8px var(--accent-glow);
}

.schedule-card {
  padding: 18px;
  background: rgba(10, 16, 36, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.schedule-time-badge {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.schedule-worker {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SUPPORT / MESSAGING TAB */
.support-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.chat-box {
  display: flex;
  flex-direction: column;
  height: 480px;
  border-radius: var(--radius-md);
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  position: relative;
  line-height: 1.5;
}

.message.admin {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message.client {
  background: rgba(255, 102, 51, 0.08);
  border: 1px solid var(--border-accent);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: rgba(10, 16, 36, 0.5);
}

.chat-input {
  flex: 1;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-send-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.chat-send-btn:hover {
  background: #FF7E45;
}

.care-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.care-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  font-family: var(--font-head);
}

.care-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}

.care-item {
  position: relative;
  padding-left: 20px;
}

.care-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.care-item.dont::before {
  content: '✗';
  color: #ef4444;
}

/* CUSTOM MODAL FOR DOCUMENT PREVIEW */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

.modal-content {
  width: 100%;
  max-width: 800px;
  background: var(--bg);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Simulated Document styles in modal */
.simulated-doc {
  background: #fff;
  color: #333;
  padding: 40px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  line-height: 1.4;
}

.simulated-doc h2 {
  font-family: var(--font-head);
  text-align: center;
  margin-bottom: 24px;
  color: #111;
  font-weight: 800;
}

.simulated-doc hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px dashed #ccc;
}

.simulated-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.simulated-doc table td, .simulated-doc table th {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.simulated-doc table th {
  text-align: left;
  border-bottom: 2px solid #ddd;
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card-strong);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: var(--font-head);
}

.toast-body {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(255, 102, 51, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 102, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 102, 51, 0); }
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-item {
    white-space: nowrap;
    padding: 10px 16px;
  }
  
  .overview-summary {
    grid-template-columns: 1fr;
  }
  
  .support-container {
    grid-template-columns: 1fr;
  }
  
  .stepper {
    flex-direction: column;
    gap: 16px;
  }
  
  .stepper::before {
    display: none;
  }
  
  .step-item {
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }
  
  .step-name {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* TEST PHASE BADGE & MAINTENANCE MODE */
.badge-test-phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}
.badge-test-phase span {
  display: inline-block;
  font-size: 0.6rem;
  color: #f59e0b;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: var(--transition-smooth);
}
.maintenance-overlay.hidden {
  display: none !important;
}
.maintenance-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 36px 28px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.maintenance-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
