/* ========================================
   APPTRUM SOLUTIONS - CORPORATE WEBSITE
   ======================================== */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;600&display=swap');

/* === CSS VARIABLES (BRAND COLORS) === */
:root {
  /* Primary Blues - from user requirements */
  --primary-blue: #0870B8;
  --secondary-blue: #2B88C3;
  --dark-navigation: #0B0B0B;
  --cta-green: #2FBE15;
  --accent-red: #D74A49;

  /* Neutrals */
  --text-primary: #0B1220;
  --text-muted: #52606D;
  --bg-light: #F7FAFC;
  --card-bg: #FFFFFF;
  --border: #E6EEF5;

  /* Typography - English */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Typography - Arabic */
  --font-ar: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;

  /* Spacing System (8px grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-standard: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: #0B1220;
  /* Desktop dark text */
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic font switching */
[dir="rtl"] body {
  font-family: var(--font-ar);
  font-size: 18px;
  /* 10-15% larger for Arabic readability */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #0B1220;
  /* Desktop dark text */
}

h1 {
  font-size: clamp(36px, 5vw, 48px);
}

h2 {
  font-size: clamp(32px, 4vw, 40px);
}

h3 {
  font-size: clamp(28px, 3.5vw, 32px);
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

p {
  margin-bottom: var(--space-sm);
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-success {
  background: var(--cta-green);
  color: white;
}

.btn-success:hover {
  background: #28a612;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
}

/* White outline for hero section */
.hero .btn-outline {
  border-color: white;
  color: white;
}

.hero .btn-outline:hover {
  background: white;
  color: var(--primary-blue);
}

/* === HEADER & NAVIGATION === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-navigation);
  box-shadow: var(--shadow-medium);
  height: var(--header-height);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo {
  height: 65px;
  width: auto;
}

.company-name {
  font-size: 20px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .company-name {
    display: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: white;
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link:hover {
  color: var(--secondary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-blue);
  transition: width var(--transition-standard);
}

.nav-link:hover::after {
  width: 100%;
}

/* Services dropdown trigger */
.services-trigger {
  cursor: pointer;
}

.services-trigger > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.services-trigger svg {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  display: inline-block;
  pointer-events: none;
}

.services-trigger:hover svg {
  transform: rotate(180deg);
}

/* === MEGA MENU === */
.mega-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-standard);
  max-height: 0;
  overflow: hidden;
  z-index: 9999;
}

@media (min-width: 1025px) {
  .services-trigger:hover .mega-menu,
  .mega-menu:hover,
  .mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: calc(100vh - var(--header-height) - 20px);
    overflow-y: auto;
  }

  .services-trigger:hover svg {
    transform: rotate(180deg);
  }
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: calc(100vh - var(--header-height) - 20px);
  overflow-y: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
}

.mega-menu-category {
  padding: var(--space-sm);
}

.mega-menu-category h4 {
  color: var(--primary-blue);
  margin-bottom: var(--space-xs);
  font-size: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
}

.mega-menu-category ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu-category a {
  color: #0B1220 !important;
  /* Force dark text on desktop */
  ;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
  font-size: 14px;
}

.mega-menu-category a:hover {
  color: var(--primary-blue);
  background: var(--bg-light);
  padding-left: var(--space-sm);
}

[dir="rtl"] .mega-menu-category a:hover {
  padding-left: var(--space-xs);
  padding-right: var(--space-sm);
}

/* === HEADER ACTIONS === */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ── Language Switcher: Globe + Dropdown ── */
.lang-switcher {
  position: relative;
}

.lang-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

.lang-switcher-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-globe {
  flex-shrink: 0;
  opacity: 0.8;
}

.lang-current {
  font-size: 13px;
  font-weight: 700;
}

.lang-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-switcher.open .lang-dropdown {
  display: block;
  animation: langDropIn 0.15s ease;
}

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

.lang-dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

.lang-dropdown-item.is-active {
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.lang-dropdown-item.is-active::before {
  content: '✔︎';
  margin-inline-end: 8px;
  font-size: 11px;
  color: #4ade80;
}

/* legacy kept for backwards compat */
.lang-toggle, .lang-option, .lang-separator { display: none; }

/* ── User Menu & Auth Header Controls ── */
.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  color: #93c5fd;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  line-height: 1;
}

.user-auth-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: #3b82f6;
  color: #ffffff;
}

.user-auth-icon {
  flex-shrink: 0;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
  padding: 4px 10px 4px 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

[dir="rtl"] .user-menu-trigger {
  padding: 4px 4px 4px 10px;
}

.user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.user-menu-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.user-menu-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.user-menu-wrap.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #181c28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px;
  margin: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

[dir="rtl"] .user-dropdown-menu {
  right: auto;
  left: 0;
}

.user-menu-wrap.open .user-dropdown-menu {
  display: block;
  animation: userDropIn 0.15s ease;
}

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

.user-dropdown-header {
  padding: 8px 10px;
}

.user-dropdown-fullname {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-email {
  font-size: 11px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.12s ease;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: inherit;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.user-dropdown-item svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.user-dropdown-item:hover svg {
  color: #60a5fa;
}

.user-dropdown-item-danger {
  color: #f87171;
}

.user-dropdown-item-danger svg {
  color: #f87171;
}

.user-dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.user-dropdown-item-danger:hover svg {
  color: #fca5a5;
}

.user-dropdown-logout-form {
  margin: 0;
  padding: 0;
}


/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 20px;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* === SECTIONS === */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-xs);
  position: relative;
  padding-bottom: 8px;
}

.section-title {
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 16px;
}

.section-description {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-standard);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: white;
  font-size: 28px;
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-blue);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary-blue);
  font-weight: 600;
  margin-top: var(--space-md);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-sm);
}

/* === STATS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--text-muted);
  font-size: 16px;
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: #0B1220;
  /* Desktop dark text */
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(8, 112, 184, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-checkbox {
  margin-top: 4px;
}

.form-error {
  color: var(--accent-red);
  font-size: 14px;
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: var(--accent-red);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(215, 74, 73, 0.15);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.form-group.error .form-checkbox {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.form-success-message {
  background: #d4edda;
  color: #155724;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  display: none;
}

.form-success-message.active {
  display: block;
}

/* === FOOTER === */
.site-footer {
  background: var(--dark-navigation);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--secondary-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* === LOADER === */
.loader {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(8, 112, 184, 0.1);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-md) auto;
}

.loader.active {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === BUTTON SPINNER (INLINE) === */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

[dir="rtl"] .btn-spinner {
  margin-right: 0;
  margin-left: 8px;
}

/* Add this comprehensive mobile responsive CSS to replace lines 738-812 in styles.css */

/* Enhanced Mobile Responsive CSS - v2
 * 1. Smart company name visibility (show on larger mobile, hide on small)
 * 2. Accordion-style services mega menu for mobile
 * 3. Extended breakpoint to 1024px for tablet support
 */

/* Enhanced Mobile Responsive CSS - v2
 * 1. Smart company name visibility (show on larger mobile, hide on small)
 * 2. Accordion-style services mega menu for mobile
 * 3. Extended breakpoint to 1024px for tablet support
 */

/* Enhanced Mobile Responsive CSS - v2
 * 1. Smart company name visibility (show on larger mobile, hide on small)
 * 2. Accordion-style services mega menu for mobile
 * 3. Extended breakpoint to 1024px for tablet support
 */

/* === RESPONSIVE === */

/* Hide company name only on very small screens (360px and below) */
@media (max-width: 360px) {
  .company-name {
    display: none;
  }
}

/* Show company name on mobile screens 361px-768px */
@media (min-width: 361px) and (max-width: 768px) {
  .company-name {
    display: inline;
    font-size: 16px;
  }
}

/* Tablet breakpoint (769px - 1280px) - reduced styles, still uses desktop menu */
@media (min-width: 769px) and (max-width: 1280px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .company-name {
    font-size: 18px;
  }

  .nav-link {
    font-size: 14px;
    padding: var(--space-xs) 0;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .header-actions .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .hero-cta {
    gap: var(--space-sm);
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile and Small Tablet breakpoint (max-width: 1280px) - Use mobile menu */
@media (max-width: 1280px) {
  :root {
    --header-height: 70px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }

  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--dark-navigation);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-standard);
    box-shadow: var(--shadow-elevated);
  }

  .main-nav.active {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm);
  }

  .nav-link {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Services trigger on mobile */
  .services-trigger {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 48px;
    justify-content: space-between;
  }


  /* Services li should not have extra indentation */
  .nav-links .services-trigger {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links .services-trigger>span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Smart Accordion-Style Mega Menu for Mobile/Tablet */
  .mega-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    border-radius: var(--radius-md);
    margin: 0;
  }

  .mega-menu.active {
    transform: none;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  /* Category headers for mobile - make them collapsible-looking */
  .mega-menu-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0;
    margin-bottom: var(--space-xs);
  }

  .mega-menu-category h4 {
    color: white;
    background: rgba(8, 112, 184, 0.3);
    padding: var(--space-sm) var(--space-md);
    margin: 0;
    border-radius: var(--radius-sm);
    border-bottom: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 15px;
  }

  .mega-menu-category ul {
    padding: var(--space-xs) 0;
  }

  .mega-menu-category a {
    padding: 12px var(--space-md);
    min-height: 48px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    /* Mobile needs white text on dark bg */
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
  }

  .mega-menu-category a:hover,
  .mega-menu-category a:active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary-blue);
    padding-left: calc(var(--space-md) + 8px);
    color: white !important;
  }

  [dir="rtl"] .mega-menu-category a {
    border-left: none;
    border-right: 3px solid transparent;
  }

  [dir="rtl"] .mega-menu-category a:hover,
  [dir="rtl"] .mega-menu-category a:active {
    border-right-color: var(--secondary-blue);
    padding-right: calc(var(--space-md) + 8px);
    padding-left: var(--space-md);
  }

  /* Header Actions Mobile */
  .header-actions {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .header-actions .btn {
    flex: 0 0 auto;
    min-width: 160px;
    justify-content: center;
  }

  .lang-switcher-trigger {
    padding: 7px 11px;
    font-size: 13px;
  }

  /* Hero Section Mobile */
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-cta {
    flex-direction: row;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-cta .btn {
    width: auto;
    min-height: 50px;
    justify-content: center;
    font-size: 16px;
    padding: 16px 24px;
  }

  /* Buttons Mobile - Better Touch Targets */
  .btn {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 15px;
    justify-content: center;
  }

  /* Section Spacing */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Stats Grid Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 36px;
  }

  /* Card Grid Mobile */
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .card {
    padding: var(--space-lg);
  }

  /* Form Elements Mobile */
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 48px;
    font-size: 16px;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 32px;
  }

  /* Full-width buttons on very small screens */
  .btn {
    width: auto;
    text-align: center;
  }

  .card {
    padding: var(--space-md);
  }
}



/* Desktop Mega Menu Color Override - MUST come after mobile styles */
@media (min-width: 1281px) {
  .mega-menu-category a {
    color: #0B1220 !important;
  }

  .mega-menu-category a:hover {
    color: #0870B8 !important;
  }
}

/* === RTL ADJUSTMENTS === */
[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .card-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .services-trigger svg {
  transform: scaleX(-1);
}

[dir="rtl"] .services-trigger:hover svg {
  transform: scaleX(-1) rotate(180deg);
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.hidden {
  display: none;
}

.bg-white {
  background: white;
}

/* === SERVICE PAGE ENHANCEMENTS === */
.section .card {
  position: relative;
  overflow: hidden;
}

.section .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #0870B8, #2B88C3);
  transition: height 0.4s ease;
}

.section .card:hover::before {
  height: 100%;
}

.section .card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon {
  transition: transform 0.3s ease;
}

/* Custom service page section headers */
.section h2 {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

/* FAQ cards enhancement */
.section div[style*='max-width: 800px'] .card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid #0870B8;
  transition: all 0.3s ease;
}

.section div[style*='max-width: 800px'] .card:hover {
  border-left-width: 6px;
  box-shadow: 0 8px 25px rgba(8, 112, 184, 0.12);
}

.section div[style*='max-width: 800px'] .card h4 {
  color: #0870B8;
  font-weight: 600;
}

/* === ENHANCED DELIVERABLES SECTION === */
.deliverables-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 32px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.deliverables-list li {
  padding: 16px 20px 16px 50px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.deliverables-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #2FBE15, #28a612);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(47, 190, 21, 0.3);
}

.deliverables-list li::after {
  content: '\2713';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.deliverables-list li:hover {
  transform: translateX(8px);
  border-color: #0870B8;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 4px 15px rgba(8, 112, 184, 0.15);
}

.deliverables-list li:last-child {
  margin-bottom: 0;
}

.deliverables-list li span {
  font-weight: 500;
  color: #0B1220;
}

.deliverables-list li:hover span {
  color: #0870B8;
}

/* RTL Support for Deliverables */
[dir='rtl'] .deliverables-list li {
  padding: 16px 50px 16px 20px;
}

[dir='rtl'] .deliverables-list li::before,
[dir='rtl'] .deliverables-list li::after {
  left: auto;
  right: 18px;
}

[dir='rtl'] .deliverables-list li::after {
  right: 22px;
}

[dir='rtl'] .deliverables-list li:hover {
  transform: translateX(-8px);
}

/* Fix: Hide the old checkmark text and align title underline */
.deliverables-list li {
  list-style: none;
}


/* Keep benefits cards centered and full width */
.section.bg-white .card {
  width: 100%;
}

/* Override previous: Show 2 benefits cards per row */
.section.bg-white .card-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 1000px;
  margin: 0 auto;
  gap: 24px;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
  .section.bg-white .card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Update deliverables styling to use class-based selector */
.deliverables-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 32px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.deliverables-list li {
  padding: 16px 20px 16px 50px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.deliverables-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #2FBE15, #28a612);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(47, 190, 21, 0.3);
}



.deliverables-list li:hover {
  transform: translateX(8px);
  border-color: #0870B8;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 4px 15px rgba(8, 112, 184, 0.15);
}

.deliverables-list li:last-child {
  margin-bottom: 0;
}

.deliverables-list li span {
  font-weight: 500;
  color: #0B1220;
  font-size: 18px;
}

.deliverables-list li:hover span {
  color: #0870B8;
}

/* Display FAQ cards in a grid (2 columns on desktop) */
.section div[style*='max-width: 800px'] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px !important;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
  .section div[style*='max-width: 800px'] {
    grid-template-columns: 1fr;
  }
}

/* Remove individual card margin since grid handles spacing */
.section div[style*='max-width: 800px'] .card {
  margin-bottom: 0 !important;
}

/* Center icons and titles in benefit cards */
.section.bg-white .card {
  text-align: center;
}

.section.bg-white .card .card-icon {
  margin: 0 auto 16px auto;
}

.section.bg-white .card h3 {
  text-align: center;
}

.section.bg-white .card p {
  text-align: center;
}

/* FAQ Container - 2 column grid */
.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px) {
  .faq-container {
    grid-template-columns: 1fr;
  }
}

/* Remove individual card margin */
.faq-container .card {
  margin-bottom: 0 !important;
}

/* Fix: Center the underline for home page section titles */
.section-subtitle::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Fix: Center the underline for section titles and h2 elements */
.section-title::after,
h2::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Thin separator lines between sections */
.section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.section:last-of-type {
  border-bottom: none;
}

/* Slightly lighter separator for white background sections */
.section.bg-white {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* Alternating section backgrounds - light gray for sections without bg-white */
.section:not(.bg-white) {
  background-color: #f5f5f5;
}

.section.bg-white {
  background-color: #ffffff;
}

/* Force navigation links to be white on dark header background - but NOT mega menu */
.nav-links>li>a,
.nav-links>li>span,
.services-trigger>span {
  color: white !important;
}

.nav-links>li>a:hover,
.services-trigger:hover>span {
  color: var(--secondary-blue) !important;
}


/* Desktop Mega Menu - Override mobile white text */
@media (min-width: 1025px) {
  .mega-menu-category a {
    color: #0B1220 !important;
  }

  .mega-menu-category a:hover {
    color: #0870B8 !important;
  }
}

/* Account Dashboard Layout */
.account-page-section {
    padding: 50px 0 80px;
    min-height: calc(100vh - 350px);
}

.account-dashboard-wrapper {
    max-width: 920px;
    margin: 0 auto;
}

.account-dashboard-wrapper * {
    box-sizing: border-box;
}

.account-dashboard-wrapper p {
    color: #94a3b8 !important;
}

.account-dashboard-wrapper h1,
.account-dashboard-wrapper h2,
.account-dashboard-wrapper h3,
.account-dashboard-wrapper h4,
.account-dashboard-wrapper h5 {
    color: #ffffff !important;
}

.account-header-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 22px 28px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.account-profile-summary {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.account-avatar-badge {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
}

.account-user-meta {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.account-user-name {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.account-user-sub {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.account-user-email {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.account-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    color: #4ade80 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    line-height: 1.2 !important;
}

.status-pulse-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 6px #22c55e !important;
}

.account-signout-btn {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: all 0.18s ease !important;
    line-height: 1 !important;
    font-family: inherit !important;
}

.account-signout-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.account-tabs-wrapper {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.account-tabs-nav {
    display: flex !important;
    gap: 8px !important;
    background: rgba(9, 14, 28, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 14px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.account-tab-btn {
    padding: 10px 16px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    line-height: 1 !important;
}

.account-tab-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.account-tab-btn.active {
    color: #ffffff !important;
    background: #5d5fef !important;
    border-color: #5d5fef !important;
    box-shadow: 0 4px 14px rgba(93, 95, 239, 0.35) !important;
}

.account-tab-pane {
    padding: 30px !important;
}

.account-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

@media (max-width: 640px) {
    .account-header-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
    }
    .account-form-grid {
        grid-template-columns: 1fr !important;
    }
    .account-tab-pane {
        padding: 20px 16px !important;
    }
}

.account-form-actions {
    margin-top: 24px !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.account-submit-btn {
    background: #5d5fef !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(93, 95, 239, 0.35) !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    font-family: inherit !important;
}

.account-submit-btn:hover {
    background: #4e50e5 !important;
    box-shadow: 0 6px 20px rgba(93, 95, 239, 0.5) !important;
    transform: translateY(-1px) !important;
}

.btn-danger-custom {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px 20px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-danger-custom:hover {
    background: #b91c1c !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
    transform: translateY(-1px) !important;
}

.btn-danger-custom.btn-sm {
    padding: 7px 14px !important;
    font-size: 12.5px !important;
}

/* 2FA Setup Card */
.two-factor-setup-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

.two-factor-setup-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.two-factor-icon-badge {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.two-factor-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
}

.two-factor-subheading {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.two-factor-setup-grid {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 28px !important;
    align-items: start !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 24px !important;
}

@media (max-width: 768px) {
    .two-factor-setup-grid {
        grid-template-columns: 1fr !important;
    }
}

.two-factor-qr-col {
    display: flex !important;
    justify-content: center !important;
}

.two-factor-qr-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

.two-factor-qr-image {
    width: 150px !important;
    height: 150px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.two-factor-qr-caption {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    text-align: center !important;
}

.two-factor-info-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.two-factor-step-item {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

.two-factor-step-num {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #5d5fef !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.two-factor-step-text {
    flex: 1 !important;
}

.two-factor-step-text strong {
    font-size: 14px !important;
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 3px !important;
}

.two-factor-step-text p {
    font-size: 13px !important;
    color: #94a3b8 !important;
    line-height: 1.5 !important;
    margin: 0 0 6px 0 !important;
}

.two-factor-secret-container {
    margin-top: 6px !important;
}

.two-factor-secret-code {
    display: inline-block !important;
    padding: 6px 12px !important;
    background: #090f1d !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 6px !important;
    font-family: monospace !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #a5b4fc !important;
    letter-spacing: 1.5px !important;
}

.two-factor-verify-section {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 22px !important;
}

.two-factor-code-input {
    letter-spacing: 8px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-align: center !important;
    max-width: 280px !important;
}

/* 2FA Active Status Box */
.two-factor-status-box {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

.two-factor-status-header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.two-factor-status-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
}

.two-factor-status-desc {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

.recovery-codes-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.recovery-code-badge {
    padding: 8px 12px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    font-family: monospace !important;
    font-size: 12.5px !important;
    color: #a5b4fc !important;
    text-align: center !important;
}

.sessions-list-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.sessions-list-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.sessions-list-header h4 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.sessions-subtitle {
    font-size: 13px !important;
    color: #94a3b8 !important;
    margin: 4px 0 0 0 !important;
}

.session-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    transition: border-color 0.15s ease !important;
}

.session-item.session-current {
    border-color: rgba(93, 95, 239, 0.4) !important;
    background: rgba(93, 95, 239, 0.08) !important;
}

.session-icon {
    color: #818cf8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}

.session-badge-current {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    background: #22c55e !important;
    color: #ffffff !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    margin-left: 6px !important;
}

[dir="rtl"] .session-badge-current {
    margin-left: 0 !important;
    margin-right: 6px !important;
}

.session-agent {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.session-meta {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    margin-top: 3px !important;
}

/* Auth Card Styles */
.auth-card-header {
    text-align: center !important;
    margin-bottom: 12px !important;
}

.auth-title,
h2.auth-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.account-alert,
.auth-alert {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    margin-bottom: 22px !important;
    box-sizing: border-box !important;
}

.account-alert-danger,
.auth-alert-danger,
.auth-alert-info {
    background: #1a0f16 !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    border-left: 4px solid #ef4444 !important;
    color: #fee2e2 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[dir="rtl"] .account-alert-danger,
[dir="rtl"] .auth-alert-danger,
[dir="rtl"] .auth-alert-info {
    border-left: 1px solid rgba(239, 68, 68, 0.45) !important;
    border-right: 4px solid #ef4444 !important;
}

.account-alert-danger span,
.auth-alert-danger span,
.auth-alert-info span {
    color: #fee2e2 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.account-alert-danger svg,
.auth-alert-danger svg,
.auth-alert-info svg {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.account-alert-success,
.auth-alert-success {
    background: #0d1f18 !important;
    border: 1px solid rgba(34, 197, 94, 0.45) !important;
    border-left: 4px solid #22c55e !important;
    color: #dcfce7 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[dir="rtl"] .account-alert-success,
[dir="rtl"] .auth-alert-success {
    border-left: 1px solid rgba(34, 197, 94, 0.45) !important;
    border-right: 4px solid #22c55e !important;
}

.account-alert-success span,
.auth-alert-success span {
    color: #dcfce7 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.account-alert-success svg,
.auth-alert-success svg {
    color: #22c55e !important;
    stroke: #22c55e !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.account-alert-warning,
.auth-alert-warning {
    background: #23190e !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    border-left: 4px solid #f59e0b !important;
    color: #fef3c7 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[dir="rtl"] .account-alert-warning,
[dir="rtl"] .auth-alert-warning {
    border-left: 1px solid rgba(245, 158, 11, 0.45) !important;
    border-right: 4px solid #f59e0b !important;
}

.account-alert-warning span,
.auth-alert-warning span {
    color: #fef3c7 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.account-alert-warning svg,
.auth-alert-warning svg {
    color: #f59e0b !important;
    stroke: #f59e0b !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.auth-submit-btn.loading,
.btn-submit.loading {
    opacity: 0.85 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

.auth-btn-spinner {
    animation: authBtnSpin 0.75s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

[dir="rtl"] .auth-btn-spinner {
    margin-left: 0;
    margin-right: 8px;
}

.auth-submit-btn.loading .auth-btn-spinner,
.btn-submit.loading .auth-btn-spinner {
    display: inline-block !important;
}

@keyframes authBtnSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}