/* ==========================================================================
   ROBO SOCIETY - Smart Society Management System
   Unified Enterprise SaaS CSS Design System
   ========================================================================== */

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

:root {
  --primary-dark: #0f172a;
  --primary: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);
  
  --transition-fast: all 0.2s ease;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container Responsiveness - Eliminate big side gaps and provide modern wide layout */
.container, 
.container-lg, 
.container-md, 
.container-sm, 
.container-xl, 
.container-xxl {
  max-width: 95% !important;
  width: 95% !important;
  padding-left: clamp(1rem, 2.5vw, 2.5rem) !important;
  padding-right: clamp(1rem, 2.5vw, 2.5rem) !important;
}

@media (min-width: 1500px) {
  .container, 
  .container-lg, 
  .container-md, 
  .container-sm, 
  .container-xl, 
  .container-xxl {
    max-width: 1560px !important;
  }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar-robo {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  padding: 0.85rem 0;
  transition: var(--transition-base);
}

.brand-logo,
.brand-logo:hover,
.brand-logo:focus {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  text-decoration: none !important;
  color: #1e40af !important;
}

.brand-text {
  font-weight: 800 !important;
  color: #1e40af !important;
  letter-spacing: -0.5px;
  display: inline-block;
}

.brand-text span {
  color: #2563eb !important;
}

.nav-link-robo {
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link-robo:hover,
.nav-link-robo.active {
  color: var(--accent);
  background-color: var(--accent-light);
}

.btn-robo-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-robo-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

.btn-robo-outline {
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-robo-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 50%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-mockup-wrapper {
  position: relative;
}

.hero-card-main {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 25px rgba(37, 99, 235, 0.08);
  transition: var(--transition-base);
}

.hero-card-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.floating-stat-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: floatPill 4s ease-in-out infinite alternate;
}

.pill-1 { top: -20px; right: 20px; animation-delay: 0s; }
.pill-2 { bottom: -20px; left: -20px; animation-delay: 1.5s; }

@keyframes floatPill {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 3.5rem 0;
  border-radius: var(--radius-xl);
  margin: 2rem 0 4rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CARDS & FEATURES
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon-box {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   TIMELINE / HOW IT WORKS
   ========================================================================== */
.timeline-container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  margin-top: 2rem;
}

.timeline-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition-base);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.15);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   USER TYPES CARDS
   ========================================================================== */
.user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-base);
  height: 100%;
}

.user-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent);
  margin: 0 auto 1.25rem;
  border: 2px solid var(--border-color);
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), #1e293b);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  color: #ffffff;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   FOOTER (ENHANCED PREMIUM DESIGN)
   ========================================================================== */
/* ==========================================================================
   FOOTER (COMPACT & SLEEK DESIGN)
   ========================================================================== */
.footer-robo {
  background: linear-gradient(180deg, #0b1120 0%, #060a12 100%);
  color: #94a3b8;
  padding: 2.25rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-robo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.6), transparent);
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.footer-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1;
}

.footer-brand span {
  color: #38bdf8;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
  margin-bottom: 0.85rem;
  max-width: 320px;
}

.footer-social-wrap {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.84rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-card {
  background: transparent;
  border: none;
  padding: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}

.footer-contact-val {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  transition: var(--transition-fast);
  line-height: 1.3;
}

.footer-contact-val:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-copyright {
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.footer-copyright strong {
  color: #ffffff;
  font-weight: 700;
}

.footer-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50px;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.78rem;
  transition: var(--transition-base);
}

.footer-credit-badge:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.footer-credit-badge strong {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   LOGIN PAGE (FULL-VIEWPORT MODERN SPLIT)
   ========================================================================== */
.login-fullscreen-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex;
  background: #ffffff;
  overflow-x: hidden;
}

.login-left-panel {
  flex: 0 0 45%;
  background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, #0b1120 65%, #030712 100%);
  color: #ffffff;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-left-panel::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.login-right-panel {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: #f8fafc;
}

.login-form-container {
  max-width: 500px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.form-control-robo {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-control-robo:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ==========================================================================
   DASHBOARD LAYOUT
   ========================================================================== */
.dash-body {
  display: flex;
  min-height: 100vh;
  background-color: #f1f5f9;
}

.dash-sidebar {
  width: 260px;
  background: var(--primary-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  transition: var(--transition-base);
  overflow-y: auto;
}

.dash-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-nav {
  padding: 1rem 0.75rem;
  flex: 1;

}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
  transition: var(--transition-fast);
}

.dash-nav-item:hover,
.dash-nav-item.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.2);
  border-left: 3px solid var(--accent);
}

.dash-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: var(--transition-base);
}

.dash-topbar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.dash-search-input {
  width: 320px;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
}

.dash-search-wrapper {
  position: relative;
}

.dash-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.dash-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.dash-content {
  padding: 2rem;
}

/* Dashboard Stats Grid */
.stat-card-dash {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stat-card-dash:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-dash-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.badge-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
}

.badge-trend-up {
  background: var(--success-light);
  color: var(--success);
}

.badge-trend-down {
  background: var(--danger-light);
  color: var(--danger);
}

/* Status Badges for Tables */
.badge-status {
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.badge-paid, .badge-resolved {
  background: var(--success-light);
  color: #065f46;
}

.badge-pending, .badge-in-progress {
  background: var(--warning-light);
  color: #92400e;
}

.badge-high, .badge-open {
  background: var(--danger-light);
  color: #991b1b;
}

.badge-medium {
  background: #e0f2fe;
  color: #075985;
}

.badge-low {
  background: #f1f5f9;
  color: #475569;
}

/* Custom Table Wrapper */
.table-responsive-custom {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

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

.table-robo th {
  background: #f8fafc;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.table-robo td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-main);
  vertical-align: middle;
}

.table-robo tr:last-child td {
  border-bottom: none;
}

.table-robo tr:hover {
  background-color: #f8fafc;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 550px;
  width: 90%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: var(--transition-base);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

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

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-robo {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-base);
}

.toast-robo.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE BREAKPOINTS (320px to 992px)
   ========================================================================== */

/* Tablet & Mobile Menu Styles (<= 992px) */
@media (max-width: 992px) {
  /* Navbar Mobile Menu */
  .navbar-collapse {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-color);
  }

  .navbar-collapse .navbar-nav {
    gap: 0.4rem;
    margin-bottom: 1rem !important;
  }

  .navbar-collapse .d-flex {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem !important;
  }

  .navbar-collapse .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* Fullscreen Split Login on Tablet/Mobile */
  .login-fullscreen-wrap {
    flex-direction: column !important;
    min-height: 100vh;
    width: 100%;
  }

  .login-left-panel {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center;
  }

  .login-left-panel a {
    justify-content: center;
  }

  .login-left-panel .d-flex.flex-column.gap-3 {
    display: none !important; /* Hide badge list on mobile to prevent infinite scrolling */
  }

  .login-left-panel p {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem !important;
  }

  .login-right-panel {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 2rem 1rem 3rem !important;
    background: #f8fafc;
  }

  .login-form-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.75rem 1.25rem !important;
    box-shadow: none !important;
  }

  /* Dashboard Mobile Drawer */
  .dash-sidebar {
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 270px;
    z-index: 2000;
  }

  .dash-sidebar.active {
    transform: translateX(0);
  }

  .dash-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Standard Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  /* Containers */
  .container, 
  .container-lg, 
  .container-md, 
  .container-sm, 
  .container-xl, 
  .container-xxl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.5rem 0 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.15rem !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin: 0 auto 1.5rem;
  }

  .hero-section .d-flex.flex-wrap.gap-3 {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .hero-section .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-card-main {
    padding: 0.85rem;
    margin-top: 1rem;
    border-radius: var(--radius-lg);
  }

  /* Stats Section */
  .stats-section {
    padding: 1.75rem 0.75rem;
    margin: 1.5rem 0 2.5rem;
    border-radius: var(--radius-lg);
  }

  .stat-item {
    padding: 0.5rem;
  }

  .stat-number {
    font-size: 1.85rem !important;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Timeline */
  .timeline-container {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-step {
    padding: 1.5rem 1.25rem;
  }

  /* Features & Content */
  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem !important;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 2.5rem 1.25rem;
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-subtitle {
    font-size: 0.95rem;
  }

  .cta-banner .btn {
    width: 100%;
  }

  /* Contact Page */
  .col-lg-7 .p-4.p-md-5 {
    padding: 1.5rem 1.25rem !important;
  }

  /* Footer */
  .footer-robo {
    padding: 2rem 0 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
  }

  .footer-credit-badge {
    width: 100%;
    justify-content: center;
  }

  /* Dashboard */
  .dash-topbar {
    padding: 0 1rem;
    height: 60px;
  }

  .dash-content {
    padding: 1rem 0.75rem;
  }

  .dash-search-input {
    width: 140px;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.15rem;
  }

  .brand-logo img {
    height: 34px !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .btn-robo-primary, 
  .btn-robo-outline {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
