/* assets/css/autohome.css */
/* Minimal design with auto dark theme support */
/* Mobile-first approach */

/* ===================== CSS VARIABLES ===================== */
:root {
  --bg-primary: #fff;
  --bg-secondary: #f9f9f9;
  --bg-card: #fff;
  --text-primary: #111;
  --text-secondary: #444;
  --text-muted: #666;
  --border-color: #dcdcdc;
  --shadow-sm: rgba(0, 0, 0, 0.04);
  --shadow-md: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --accent-primary: #007acc;
  --accent-hover: #005fa3;
  --overlay-bg: rgba(255, 255, 255, 0.85);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --alert-error-bg: #fddede;
  --alert-error-border: #f5a5a5;
  --alert-success-bg: #d6f5d6;
  --alert-success-border: #7bc47b;
  --wave-opacity: 0.15;
}

/* ===================== DARK THEME ===================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --text-primary: #e6edf3;
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --shadow-sm: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --accent-primary: #58a6ff;
    --accent-hover: #79c0ff;
    --overlay-bg: rgba(13, 17, 23, 0.85);
    --nav-bg: rgba(22, 27, 34, 0.92);
    --alert-error-bg: #3d1f1f;
    --alert-error-border: #6a3333;
    --alert-success-bg: #1f3d1f;
    --alert-success-border: #336633;
    --wave-opacity: 0.08;
  }
}

/* ===================== BASE RESET ===================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

/* ===================== WAVE BACKGROUND ===================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: var(--wave-opacity);
  background: 
    linear-gradient(135deg, var(--accent-primary) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, var(--accent-primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--accent-hover) 0%, transparent 50%);
  pointer-events: none;
  animation: subtleMove 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  z-index: 0;
  opacity: var(--wave-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23007acc' fill-opacity='1' 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'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
  animation: waveMove 15s ease-in-out infinite;
}

@keyframes subtleMove {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-10px);
  }
}

@keyframes waveMove {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
}

/* ===================== CONTAINERS ===================== */
main.wrap:has(.home-hero) {
  width: 100%;
  padding: 0;
}

.wrap {
  width: 90%;
  margin: 0 auto;
  padding: 1rem;
    width: 90%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 10px;
  user-select: text;
  flex: 1 0 auto;
  position: relative;
}


.transparent-bg {
  padding: 1.5rem 2rem;
  background: var(--overlay-bg);
  box-shadow: 0 8px 24px var(--shadow-md);
  backdrop-filter: blur(10px);
  
} 

/* ===================== PAGE BACKGROUND ===================== */
#page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.8s ease-in-out;
}

/* ===================== NAVIGATION ===================== */
.nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 5px var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  max-width: 90%;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 128px;
  width: auto;
  display: block;
  user-select: none;
}

.nav-toggle {
  font-size: 1.3rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  transition: color 0.3s ease;
  color: var(--text-primary);
}

.nav-toggle:hover,
.nav-toggle:focus {
  color: var(--accent-primary);
  outline: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li a {
  display: block;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 10px;
  transition: background 0.15s ease;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.nav-links li a:hover {
  background: var(--shadow-md);
}

.nav-links li a.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 122, 204, 0.35);
}

/* ===================== USER MENU ===================== */
.user-menu-wrapper {
  position: relative;
  margin-left: 0.5rem;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  user-select: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.user-menu-toggle:hover,
.user-menu-toggle:focus {
  background-color: var(--shadow-md);
  outline: none;
}

.user-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
}

.user-submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-lg);
  padding: 0.4rem 0;
  min-width: 180px;
  z-index: 120;
}

.user-submenu li {
  list-style-type: none ;
  margin: 0;
}

.user-submenu li a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.user-submenu li a:hover,
.user-submenu li a:focus {
  background: var(--accent-primary);
  color: #fff;
  outline: none;
}

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switcher-wrapper {
  position: relative;
  display: inline-block;
  font-weight: 600;
  margin-left: 0.8rem;
}

.lang-toggle {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  min-width: 48px;
  text-align: center;
  color: var(--text-primary);
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: var(--shadow-md);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--shadow-lg);
  padding: 0.3rem 0;
  min-width: 100%;
  list-style: none;
  margin: 0;
  z-index: 120;
  display: none;
}

.lang-menu li {
  margin: 0;
}

.lang-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.25s;
}

.lang-menu li a:hover,
.lang-menu li a.active {
  background: var(--accent-primary);
  color: #fff;
}

/* ===================== HERO SLIDER ===================== */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 256px;
  margin: 1.5rem auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
  padding: 1rem;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slider .slide .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1) contrast(1);
  border-radius: 16px;
  will-change: transform;
}

.hero-slider .slide .overlay {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  user-select: none;
}

.hero-slider h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
  color: #fff;
}

.hero-slider p.lead {
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.hero-controls button {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.hero-controls button:hover,
.hero-controls button:focus {
  background: var(--accent-primary);
  outline: none;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.6rem;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

p {
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

/* ===================== ALERTS ===================== */
.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1rem;
}

.alert-error {
  background-color: var(--alert-error-bg);
  border: 1px solid var(--alert-error-border);
  color: #b22;
}

.alert-success {
  background-color: var(--alert-success-bg);
  border: 1px solid var(--alert-success-border);
  color: #2a7a2a;
}

/* ===================== FORMS ===================== */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  user-select: none;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  min-height: 42px;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 122, 204, 0.4);
}

form textarea {
  min-height: 120px;
}

.button,
button.btn-primary,
.btn-primary, 
form button[type="submit"] {
  background-color: var(--accent-primary);
  border: none;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  display: inline-block;
  margin-top: 8px;
  width: auto;
  user-select: none;
}

.button:hover,
button.btn-primary:hover,
.btn-primary:hover,
.btn-primary:focus,
form button[type="submit"]:hover,
form button[type="submit"]:focus {
  background-color: var(--accent-hover);
  outline: none;
}

/* ===================== SERVICE BOX ===================== */
.service-box {
  margin-bottom: 20px;
}

.purchase-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s;
}

.purchase-button:hover {
  background-color: var(--accent-hover);
}

/* ===================== FOOTER ===================== */
.footer {
  background: repeating-linear-gradient(
    -45deg,
    var(--stripe-color-1),
    var(--stripe-color-1) 4px,
    var(--stripe-color-2) 4px,
    var(--stripe-color-2) 5px
  );
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4rem;
  user-select: none;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* ===================== TABLES ===================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-md);
  margin: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
}

thead {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
}

thead th {
  color: white;
  font-weight: 700;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

tbody td {
  padding: 1.1rem 1.5rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  transition: all 0.2s ease;
}

tbody tr {
  transition: all 0.25s ease;
}

tbody tr:hover {
  background: var(--shadow-sm);
  transform: translateX(4px);
  box-shadow: inset 4px 0 0 var(--accent-primary);
}

tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}

table a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  margin: 0 0.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

table a[href*="edit"] {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

table a[href*="edit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

table a[href*="delete"] {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

table a[href*="delete"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===================== DASHBOARD ===================== */
main.wrap.dashboard section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-sm);
  transition: all 0.3s ease;
}

main.wrap.dashboard section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

main.wrap.dashboard section h2 {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border-color);
}

main.wrap.dashboard section a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0.8rem;
  margin-bottom: 0.8rem;
  transition: all 0.25s ease;
}

main.wrap.dashboard section a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 204, 0.3);
}

/* ===================== CONTACT PAGE ===================== */
.contact-quick {
  padding: 2rem 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 960px;
  box-shadow: 0 6px 18px var(--shadow-md);
  text-align: center;
}

.contact-quick h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

.btn-wa {
  background-color: #25D366;
}

.btn-wa:hover {
  background-color: #1DA851;
  transform: translateY(-2px);
}

.btn-viber {
  background-color: #665CAC;
}

.btn-viber:hover {
  background-color: #4b4398;
  transform: translateY(-2px);
}

/* ===================== HOME PAGE ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.1), transparent);
  transition: left 0.6s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-lg);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.4s ease;
}

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

.feature-card h3 {
  color: var(--accent-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ===================== RTL SUPPORT ===================== */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] form label,
[dir="rtl"] form input[type="text"],
[dir="rtl"] form input[type="email"],
[dir="rtl"] form textarea {
  text-align: right;
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 900px) {
  main.wrap {
    width: 100%;
    padding: 1.5rem 2rem;
  }

  .wrap {
    width: 100%;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0.8rem;
    left: 0.8rem;
    background: var(--bg-card);
    flex-direction: column;
    padding: 0.6rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px var(--shadow-md);
    display: none;
    min-width: auto;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    font-size: 1rem;
    padding: 0.85rem 1.1rem;
  }

  .logo-img {
    height: 56px;
  }

  .lang-switcher-wrapper {
    margin-left: 0.4rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }

  .lang-switcher-wrapper {
    display: flex;
    gap: 0.5rem;
  }

  .lang-toggle {
    display: none;
  }

  .lang-menu {
    display: flex !important;
    position: static;
    box-shadow: none;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
  }

  .lang-menu li a {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
  }
}

@media (orientation: portrait) {
  .hero-slider {
    height: clamp(280px, 45vh, 680px);
  }
}

@media (orientation: landscape) {
  .hero-slider {
    height: clamp(360px, 65vh, 900px);
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 0.5rem;
  }

  .nav-toggle {
    font-size: 1.5rem;
  }

  .hero-slider .slide .overlay {
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
  }
}

/* ===================== WORKDONE SNAPSHOT ===================== */
.workdone-snapshot {
  font-family: Consolas, monospace, monospace;
  margin: 1rem auto;
  max-width: 960px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.workdone-snapshot h1 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.workdone-snapshot .meta {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.workdone-snapshot .file-block {
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 2px 6px var(--shadow-sm);
  overflow: auto;
}

.workdone-snapshot .file-header {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  font-weight: 700;
  user-select: text;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  font-family: Arial, sans-serif;
}

.workdone-snapshot pre {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3em;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  counter-reset: linenumber;
}

.workdone-snapshot pre code {
  display: block;
}

.workdone-snapshot pre code span {
  display: block;
  padding-left: 3.5em;
  position: relative;
  counter-increment: linenumber;
}

.workdone-snapshot pre code span::before {
  content: counter(linenumber);
  position: absolute;
  left: 0;
  width: 3em;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
}

/* ===================== HOME PAGE HERO ===================== */
.home-hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(0, 122, 204, 0.15), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(0, 95, 163, 0.15), transparent 60%);
  animation: pulseGlow 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.75);
  padding: 3rem;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: relative;
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  color: #58a6ff;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(88, 166, 255, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: white;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1.2rem 2.5rem !important;
  font-size: 1.1rem !important;
}

.btn-secondary {
  background: transparent !important;
  border: 2px solid white !important;
  color: white !important;
}

.btn-secondary:hover {
  background: white !important;
  color: var(--accent-primary) !important;
}

.icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
}

/* ===================== SERVICES ===================== */
.services-preview {
  margin: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-lg);
  border-color: var(--accent-primary);
}

.service-card:hover::after {
  opacity: 0.15;
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.4));
  transition: background 0.4s ease;
}

.service-card:hover .service-image::after {
  background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.6));
}

.service-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  color: var(--text-primary);
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-link {
  display: inline-block;
  padding: 1rem 1.5rem 1.5rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: var(--accent-hover);
}

.text-center {
  text-align: center;
}

/* ===================== CONTACT FORM ===================== */
.hero {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.contact-form-container {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
  margin: 3rem auto 5rem;
  padding: 2.5rem;
  background: var(--overlay-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 15px 40px var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form-column {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-group label::after {
  content: '*';
  color: #dc3545;
  font-size: 1.2em;
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.15);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.captcha-group {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
}

.captcha-group label {
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.captcha-group label::after {
  content: '';
  display: none;
}

.captcha-group input {
  background: var(--bg-card);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  max-width: 200px;
}

.form-submit {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  min-width: 180px;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 122, 204, 0.3);
}


.direct-contacts-column {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 2px dashed var(--border-color);
  position: sticky;
  top: 2rem;
}

.direct-contacts-column h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.direct-contacts-column h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #25D366, #665CAC);
  border-radius: 2px;
}

.contact-buttons-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-contact.whatsapp {
  background: linear-gradient(135deg, #25D366, #1DA851);
  color: white;
}

.btn-contact.whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-contact.viber {
  background: linear-gradient(135deg, #665CAC, #4b4398);
  color: white;
}

.btn-contact.viber:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 92, 172, 0.3);
}

/* ===================== BADGES ===================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
}

.badge-user {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

.badge-active {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
}

.badge-inactive {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content {
  animation: fadeIn 1s ease-out;
}

.feature-card {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.5s; }

.service-card {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.3s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }

main.wrap.dashboard section {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

main.wrap.dashboard section:nth-child(1) { animation-delay: 0.1s; }
main.wrap.dashboard section:nth-child(2) { animation-delay: 0.2s; }
main.wrap.dashboard section:nth-child(3) { animation-delay: 0.3s; }
main.wrap.dashboard section:nth-child(4) { animation-delay: 0.4s; }

tbody tr {
  animation: fadeInRow 0.3s ease-out;
  animation-fill-mode: both;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }
tbody tr:nth-child(6) { animation-delay: 0.3s; }

.contact-form-column {
  animation: slideInLeft 0.6s ease-out;
}

.direct-contacts-column {
  animation: slideInRight 0.6s ease-out 0.2s both;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */
@media (max-width: 1024px) {
  .contact-form-container {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem;
  }
  
  .direct-contacts-column {
    flex: none;
    width: 100%;
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-buttons-column {
    flex-direction: row;
    justify-content: center;
  }
  
  .btn-contact {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    height: 100dvh;
    min-height: 500px;
    border-radius: 0 0 20px 20px;
  }

  .hero-text{
    padding: 1rem;
  }
  
  .hero-overlay {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }

  .hero {
    height: 220px;
  }
  
  .contact-form-container {
    padding: 1.5rem;
    margin: 2rem auto 3rem;
  }
  
  .contact-buttons-column {
    flex-direction: column;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  thead th,
  tbody td {
    padding: 0.9rem 1rem;
  }
  
  table a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  main.wrap.dashboard {
    padding: 1.5rem 1.2rem;
    margin: 1rem auto 2rem;
  }
  
  main.wrap.dashboard > h1 {
    font-size: 2rem;
  }
  
  main.wrap.dashboard section {
    padding: 1.4rem;
  }
  
  main.wrap.dashboard section a {
    width: 100%;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero-slider .slide .overlay {
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
  }

  .nav-inner {
    padding: 0.4rem 1rem;
  }
}

/* ===================== RTL ENHANCEMENTS ===================== */
[dir="rtl"] .icon {
  margin-right: 0;
  margin-left: 0.5rem;
}

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

[dir="rtl"] .service-link {
  direction: rtl;
}

[dir="rtl"] .highlight::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .contact-form-column {
  animation: slideInRight 0.6s ease-out;
}

[dir="rtl"] .direct-contacts-column {
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

[dir="rtl"] .btn-contact {
  text-align: right;
}

/* ===================== HOME HERO LAYOUT ===================== */
.home-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.home-hero .wrap {
  width: 100%;
  max-width: 1400px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0, 122, 204, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  background: var(--accent-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: -20px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: -20px;
  background: linear-gradient(135deg, #28a745, #1e7e34);
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  left: 30%;
  background: linear-gradient(135deg, #665CAC, #4b4398);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================== FEATURES SECTION ===================== */
.features-section {
  margin: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

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

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===================== SERVICES SECTION ===================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.service-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-link {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: var(--accent-hover);
}

/* ===================== WHY US SECTION ===================== */
.why-us-section {
  margin: 6rem 0;
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.why-us-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.why-us-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.step-icon {
  background: var(--accent-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.process-step h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================== CLEAN ITEMS SECTION ===================== */


.clean-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.clean-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.clean-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.clean-item-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.clean-item span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 122, 204, 0.3);
}

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

.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
}

/* ===================== SECTION HEADER ===================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.text-center {
  text-align: center;
  margin-top: 3rem;
}

/* ===================== RTL SUPPORT ===================== */
[dir="rtl"] .hero-content {
  direction: rtl;
}

[dir="rtl"] .hero-text {
  animation: fadeInRight 1s ease-out;
}

[dir="rtl"] .hero-image {
  animation: fadeInLeft 1s ease-out;
}

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

[dir="rtl"] .btn i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-content {
    gap: 3rem;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .why-us-content {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image img {
    transform: none;
  }

  
  .why-us-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .why-us-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
    padding: 3rem 0;
    margin-top:80px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .clean-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .clean-items-grid {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-header h1 {
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--bg-card);
    align-items: space-between;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-price {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
}

.service-price strong {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.service-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-duration i {
    color: var(--accent-primary);
}

.purchase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    width: 100%;
}

.purchase-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 122, 204, 0.3);
    color: white;
}

.purchase-button i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-header h1 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .service-price strong {
        font-size: 1.5rem;
    }
}


.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.news-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 6px 18px var(--shadow-sm);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
  border-color: var(--accent-primary);
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* View button */
.news-view-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  transition: all 0.25s ease;
  white-space: nowrap;
}

.news-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 122, 204, 0.35);
}

/* Mobile */
@media (max-width: 640px) {
  .news-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-view-btn {
    align-self: flex-end;
  }
}

.ml-2{
  margin-left: 0.5rem;
}
