 .custom-close {
    background-color: rgba(220, 53, 69, 0.9); /* Bootstrap danger red */
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    z-index: 1055;
  }

  .custom-close:hover {
    background-color: rgba(255, 0, 0, 0.95);
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
    transition: all 0.3s ease;
  }
  
h3.titr {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding-bottom: 8px; /* <-- Adds spacing between text and animated line */
}


h3.titr::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: #00c2ff;
  width: 0;
  transform: translateX(-50%);
  animation: underline-pulse 4s infinite;
}

@keyframes underline-pulse {
  0%,
  100% {
    width: 0;
    opacity: 0;
  }
  30% {
    width: 100%;
    opacity: 1;
  }
  70% {
    width: 100%;
    opacity: 1;
  }
}


h3.headline-animated {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding-bottom: 8px; /* spacing between text and line */
}

h3.headline-animated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: #00c2ff;
  width: 0;
  transform: translateX(-50%);
  animation: underline-pulse 4s infinite;
}

@keyframes underline-pulse {
  0%, 100% {
    width: 0;
    opacity: 0;
  }
  30% {
    width: 100%;
    opacity: 1;
  }
  70% {
    width: 100%;
    opacity: 1;
  }
}


@keyframes fadeInWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[dir="rtl"] {
  direction: rtl;
  scrollbar-color: #ccc transparent; /* for Firefox */
  scrollbar-width: thin;
}

@font-face {
  font-family: "Hasti";
  src: url("/fonts/Hasti.woff") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "koodak";
  src: url("/fonts/koodak.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "titr";
  src: url("/fonts/titr.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ordibehesht";
  src: url("/fonts/ordibehesht.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GOTHICB";
  src: url("/fonts/GOTHICB.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Stencil";
  src: url("/fonts/Allerta Stencil Regular.woff2") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.Stencil {
  font-family: "Stencil";
}


@font-face {
  font-family: "calibri";
  src: url("/fonts/calibri.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.calibri {
  font-family: "calibri";
}

.GOTHICB {
  font-family: "GOTHICB";
}

.Hasti {
  font-family: "Hasti";
}

.ordibehesht {
  font-family: "ordibehesht", sans-serif;
}

body {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

/* Enhanced select styling */
select.form-control {
  border: 2px solid #ccc;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
  cursor: pointer;
}

select.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

select.form-control:hover {
  border-color: #007bff;
}

/* Label */
.form-floating label {
  color: #333;
  font-weight: 500;
}

/* For WebKit browsers like Chrome, Safari */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
}

/* Flip content back to RTL */
.content-wrapper {
  direction: rtl;
}

.card {
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

.cards-section {
  position: relative;
padding: 0 1rem 1rem;
  color: white;
}

.cards-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/cityline2.jpg"); /* your background image */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cards-section .container {
  position: relative;
  z-index: 1;
}

.top-bar {
  position: absolute;
  top: 10px;
  align-items: center;
  padding: 10px;
  background-image: radial-gradient(
    circle 248px at center,
    #16d9e3 0%,
    #30c7ec 47%,
    #46aef7 100%
  );
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  border-radius: 5px 0 0 5px; /* Smooth rounded corners */
}

.username-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#usernameDisplay {
  font-weight: bold;
}

.koodak {
  font-family: "koodak";
}

.titr {
  font-family: "titr";
}

/* Sidebar Links */
.sidebar .nav-link {
  text-align: center;
  color: rgb(0, 0, 0);
  font-size: 18px;
  padding: 15px;
  border-bottom: 1px solid black;
  margin-left: 10px;
  margin-right: -20px;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

/* Hover Effect */
.sidebar .nav-link:hover {
  background-color: #00ccff;
  box-shadow: inset 0 10 5px rgba(0, 0, 0, 0.5); /* Internal shadow */
  color: rgb(
    255,
    255,
    255
  ); /* Optional: Adjust text color for better contrast */
  transform: scale(1.05);
}

/* Active Tab Styling */
.sidebar .nav-link.active {
  background-image: linear-gradient(to right, #ed6ea0 0%, #ec8c69 100%);
  color: rgb(255, 255, 255);
}

/* Sidebar - Fixed to the Right (Default for Large Screens) */
.sidebar {
  position: fixed;
  top: 65px; /* Adjust based on navbar height */
  right: 0;
  bottom: 0;
  min-width: 250px;
  max-width: 260px;
  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
  color: white;
  text-align: right;
  border-radius: 0 10px 10px 0;
  z-index: 1000;
  overflow-y: auto; /* Allows scrolling if content overflows */
}

/* Ensure Sidebar Doesn't Hide Content */
.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

/* Sidebar Fixed on the Right Until 768px */
@media (max-width: 991px) and (min-width: 768px) {
  .sidebar {
    position: fixed;
    right: 0;
    width: 220px;
  }

  .main-content {
    margin-right: 220px; /* Adjusted for fixed sidebar */
  }
}

/* ðŸ“Œ Move Sidebar to Bottom on Small Screens (Below 768px) */
@media (max-width: 767px) {
  .row {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    height: auto;
    max-width: none;
    border-radius: 0;
    padding: 0.5rem 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Adds a shadow at the top */
    z-index: 1000;
  }

  .sidebar .nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    flex: 1;
  }

  /* Ensure Content Doesn't Overlap Sidebar */
  .main-content {
    margin-right: 0;
    padding-bottom: 60px; /* Adds space to prevent content overlap */
  }
}

/* Add Smooth Transitions */
.sidebar,
.main-content {
  transition: all 0.3s ease-in-out;
}

.bgsin6 {
  background-image: linear-gradient(
    to top,
    #d5d4d0 0%,
    #d5d4d0 1%,
    #eeeeec 31%,
    #efeeec 75%,
    #e9e9e7 100%
  );
}

.bgsin {
  background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

.bgsin2 {
  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}
.bgsin4 {
  background: linear-gradient(to bottom, #323232 0%, #3f3f3f 40%, #1c1c1c 150%),
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(0, 0, 0, 0.25) 200%
    );
  background-blend-mode: multiply;
}


/*background-image: radial-gradient(73% 147%, #EADFDF 59%, #ECE2DF 100%), radial-gradient(91% 146%, rgba(255,255,255,0.50) 47%, rgba(0,0,0,0.50) 100%);*/
/* background-blend-mode: screen;*/

.navbar {
background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);

position: relative;
  align-items: center;
  z-index: 1;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #d4af37, #ffd700); /* gold gradient */
  z-index: 2;
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.6); /* dark border */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.navyBlue {
  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

/* Moves the auth container (Login/Logout) to the very left */
#auth-container {
  display: flex;
  align-items: center;
}

/* Base button style */
#auth-button {
  position: relative;
padding: 1px 12px;
  border-radius: 0px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.1s ease;
  overflow: hidden;
  z-index: 0;
}

/* Animated border (gliding blue border ring) */
#auth-button::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 8px;
  background: linear-gradient(135deg, transparent, #00c2ff, transparent);
  background-size: 400% 400%;
  animation: animated-border 8s linear infinite;
  z-index: -1;
  pointer-events: none;
}

/* Pulsing blue glow behind the button */
#auth-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(0, 194, 255, 0.3);
  opacity: 0;
  animation: pulse-glow 6s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

/* Slow, continuous border motion */
@keyframes animated-border {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Slow, subtle glow pulse */
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.5;
  }
}

#auth-button-en {
  position: relative;
  padding: 1px 12px;
  border-radius: 0px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.1s ease;
  overflow: hidden;
  z-index: 0;
}

#auth-button-en::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 8px;
  background: linear-gradient(135deg, transparent, #00c2ff, transparent);
  background-size: 400% 400%;
  animation: animated-border 8s linear infinite;
  z-index: -1;
  pointer-events: none;
}

#auth-button-en::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(0, 194, 255, 0.3);
  opacity: 0;
  animation: pulse-glow 6s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}



#logout-button {
  background: red;
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  table {
    font-size: 14px !important; /* Make text smaller for mobile */
  }
  .table th,
  .table td {
    white-space: nowrap; /* Prevent text wrapping */
    padding: 8px; /* Reduce padding for smaller screens */
  }
  .table-responsive {
    overflow-x: auto; /* Ensure horizontal scrolling */
  }
}

.fine-print-container {
  margin: 20px;
  padding-bottom: 10px;
}

.fine-print-title {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.fine-print-item {
  margin-bottom: 10px;
}

.fine-print-item strong {
  color: #d9534f; /* Highlighted terms */
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .fine-print-container {
    padding: 15px;
    font-size: 13px;
  }
}
.form-select {
  appearance: none; /* Removes default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important; /* Ensures Bootstrap arrow is removed */
  padding-right: 10px; /* Adjust padding so text is fully visible */
}

.list-group-item {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  word-break: break-word;
  white-space: normal;
  width: 100%;
  overflow: hidden;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff, #f2f2f2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.list-group-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Reset margins & ensure full height */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Global */
.main-content {
  flex: 1;
  min-height: calc(100vh - 50px);
  width: auto;
  padding-top: 50px;
  box-sizing: border-box;
}

/* Medium Screens (sidebar fixed on right) */
@media (min-width: 768px) and (max-width: 991px) {
  .main-content {
    margin-right: 220px;
  }
}

/* Large Screens (sidebar still fixed) */
@media (min-width: 992px) {
  .main-content {
    margin-right: 260px;
  }
}
.footer-link {
  color: #f8f9fa;
  text-decoration: none;
}

.footer-link:hover {
  color: #ffc107 !important;
  text-decoration: underline;
}

.pointy2 {
  cursor: pointer;
}

#midSection,
#topSection,
#mainSection {
  display: none;
}

#fileInput {
  display: none;
}

.drag-drop-area {
  border: 2px dashed #ccc;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.drag-drop-area.upload-invalid {
  border-color: #dc3545;
  background-color: #fff1f1;
  color: #dc3545;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.invalid-feedback {
  font-size: 0.85rem;
  color: #dc3545;
  margin-top: 6px;
  display: none;
}
.invalid-feedback div {
  margin-bottom: 4px;
}

.drag-drop-area:hover {
  background-color: #f1f1f1;
  border-color: #0d6efd;
}

.drag-drop-area.drag-hover {
  background-color: #dff0ff;
  border-color: #007bff;
  color: #007bff;
}

.bgsin3 {
  background-color: #dcd9d4;
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    radial-gradient(
      at 50% 0%,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(0, 0, 0, 0.5) 50%
    );
  background-blend-mode: soft-light, screen;
}

#orderMetricsContainer .card-title {
  font-family: titr;
}

.btn-ripple-hover:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); /* light glow */
}

.btn-ripple-hover {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to right, #434343 0%, black 100%);
  color: white;
  border: none;
  transition: background-color 0.3s ease, background 0.3s ease;
  --ripple-color: rgba(255, 255, 255, 0.4);
  --active-bg: linear-gradient(
    to top,
    #d5d4d0 0%,
    #d5d4d0 1%,
    #eeeeec 31%,
    #efeeec 75%,
    #e9e9e7 100%
  );
}

.btn-ripple-hover::before {
  content: "";
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--ripple-color) 10%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.2s ease, height 0.2s ease;
  z-index: 1;
}

.btn-ripple-hover:hover::before {
  width: 200px;
  height: 200px;
}

.btn-ripple-hover:active {
  background: var(--active-bg) !important;
}

.pointy {
  cursor: pointer;
  transition: color 0.4s ease;
}

.pointy:hover {
  color: #ffc107 !important;
}

.modal-dialog-scrollable .modal-content {
  height: 90vh; /* control overall modal height */
}
.modal-body {
  padding: 0;
}
.scroll-wrapper {
  height: 100%;
  overflow-y: auto;
}
.modal-img-top {
  width: 100%;
  height: auto;
  display: block;
}
.modal-text-content {
  padding: 1rem 1.5rem;
}

#legalModal .modal-body h6 {
  font-family: "Titr", sans-serif;
}

#legalModal .modal-body {
  font-family: "koodak", sans-serif;
}

.tile {
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* initial state */
}

.tile:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding-bottom: 2rem;
  height: auto;
}

.carousel-img-wrapper img {
  height: 550px;
  object-fit: cover;
  object-position: center;
}

.carousel-caption-below {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-in-out, transform 1s ease;
}

/* This is applied via JS only AFTER load */
.caption-animate-in {
  opacity: 1;
  transform: translateY(0);
}
/* Will be added via JavaScript shortly after load */
.carousel-caption-below.show-on-load {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .carousel-item,
  .carousel-item img {
    height: 300px; /* shorter height for mobile */
  }
}

.carousel {
  background-color: #000;
}

.carousel-img-wrapper {
  position: relative;
}

.carousel-caption-below {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.4rem;
  line-height: 0.25;
  font-weight: bold;
  font-family: "titr", sans-serif;
  color: #000000;
  direction: rtl;
  opacity: 0;
  transform: translateY(20px); /* starting position */
  transition: opacity 1s ease-in-out, transform 1s ease;
  display: block;
  position: relative;
  z-index: 10;
}

.caption-animate-in {
  opacity: 1;
  transform: translateY(0); /* move up */
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
}

.status-success {
  background-color: #28a745;
}

.status-warning {
  background-color: #ffc107;
  color: #000;
}

.status-danger {
  background-color: #dc3545;
}

.status-default {
  background-color: #6c757d;
}

@media (max-width: 576px) {
  .support-box {
    display: none;
  }
}

.certification-box {
  background: #fff;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  font-family: "koodak", Tahoma, sans-serif;
  direction: rtl;
}

.section-title {
  font-family: "Titr", Tahoma, sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.certification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.cert-item:hover {
  background-color: #e2f0ff;
  border-color: #0d6efd;
}

.cert-item.active {
  background-color: #0d6efd;
  color: #fff;
  font-weight: bold;
}

.cert-item.active .info-icon {
  color: #fff;
}

.info-icon {
  color: #0d6efd;
  font-size: 1rem;
}

.info-icon i {
  pointer-events: none;
}
.info-box {
  width: 22px;
  height: 22px;
  background-color: #e0f0ff; /* light blue background */
  color: #0d6efd; /* matching primary blue */
  border-radius: 50%;
  text-align: center;
  font-size: 0.75rem;
  line-height: 22px;
  font-weight: bold;
  cursor: help;
  position: relative;
  font-family: "koodak", sans-serif;
  display: inline-block;
  margin-inline-start: 6px;
  box-shadow: 0 0 0 1px #cbe6ff; /* soft outline */
  transition: background-color 0.3s, transform 0.2s;
}

.info-box:hover {
  background-color: #d4eaff;
  transform: scale(1.05);
}

.info-box:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%; /* tooltip above */
  right: 50%;
  transform: translateX(50%);
  background: #fefefe;
  color: #333;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: normal;
  width: 220px;
  text-align: right;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.info-box:hover::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fefefe;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

.cert-item.border-danger {
  border: 2px solid #dc3545 !important;
}
input.form-control,
textarea.form-control,
select.form-select {
  border: 1px solid #ced4da;
  border-radius: 0; /* Sharp edges */
  padding: 12px 14px;
  font-size: 1rem;
  background-color: #fdfdfd;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Hover state */
input.form-control:hover,
textarea.form-control:hover,
select.form-select:hover {
  border-color: #0d6efd;
}

/* Focus state */
input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
  border-color: #0d6efd;
  box-shadow: none;
  background-color: #fff;
}

.file-card {
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff, #f2f2f2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.sexy-progress {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 50px;
  background-color: #d0e7ff;
  overflow: hidden;
}

.sexy-progress::-webkit-progress-bar {
  background-color: #d0e7ff;
  border-radius: 50px;
}

.sexy-progress::-webkit-progress-value {
  background: linear-gradient(to left, #38a1ff, #007bff);
  border-radius: 50px;
  transition: width 0.4s ease-in-out;
}

.sexy-progress::-moz-progress-bar {
  background: linear-gradient(to left, #38a1ff, #007bff);
  border-radius: 50px;
}
.upload-entry i {
  transition: transform 0.2s ease, color 0.2s ease;
}

.upload-entry i:hover {
  transform: scale(1.15);
  color: #ff4c4c; /* Brighter red on hover */
}

.disabled-step {
  color: #999 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.accordion {
  background-color: #000; /* container full black */
}

.accordion-item {
  background-color: #000;
  border: none;
  border-bottom: 1px solid #222; /* subtle divider */
}

.accordion-button {
  background-color: #fff !important; /* header background pure white */
  color: #000 !important; /* header text black for contrast */
  padding: 0.8rem 1.2rem;
  border: none;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 0 !important;
}

.accordion-button:not(.collapsed) {
  background-color: #f1f1f1 !important;
  color: #000 !important;
}

.accordion-button:hover {
  background-color: #f7f7f7 !important;
}

.accordion-button:focus {
  outline: none !important;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: none; /* keep default icon coloring */
}

.accordion-body {
  background-color: #000;
  color: #fff;
  font-weight: 400;
  padding: 1rem;
}

.accordion-button i {
  color: #000 !important; /* icon inside white header */
}

.logout-btn {
  font-family: "titr", sans-serif;
  padding: 6px 14px;
  background-color: transparent;
  border: 2px solid #ff4d4d;
  color: #ff4d4d;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logout-btn-1 {
  font-family: "titr", sans-serif;
  padding: 6px 14px;
  background-color: transparent;
  border: 2px solid rgb(0, 217, 255);
  color: rgb(0, 217, 255);
  border-radius: 0px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logout-btn-2 {
  font-family: "titr", sans-serif;
  padding: 6px 14px;
  background-color: transparent;
  border: 2px solid #ff4d4d;
  color: #ff4d4d;
  border-radius: 0px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logout-btn-1:hover {
  background-color: rgb(0, 217, 255);
  color: white;
  box-shadow: 0 0 8px rgb(0, 152, 179);
}

.logout-btn-2:hover {
  background-color: #ff4d4d;
  color: white;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
}

.logout-btn:hover {
  background-color: #ff4d4d;
  color: white;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
}

.fade-in-row {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade-in-row.show {
  opacity: 1;
}

/* Soft shadow on hover */
#step-wrapper {
  transition: box-shadow 0.3s ease;
}
#step-wrapper:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#step5Overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1000;
  background-color: white;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-family: "koodak", sans-serif;
  direction: rtl;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}

#finalText {
  max-width: 800px;
  width: 100%;
  overflow-wrap: break-word;
  margin: 20px;
}


@media (max-width: 768px) {
  .vh-container {
    height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 100px) !important;
    flex-direction: column;
    overflow-y: auto;
  }

  .hero-section {
    flex: 0 0 50vh;
  }

  .how-it-works-section {
    display: none !important;
  }
}





.hero-section {
  flex: 7;
  display: flex;
  flex-direction: column;
justify-content: space-around;
align-items: center;
  text-align: center;
  color: white;
  padding: 0.5rem 1rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}

#bg1 {
  z-index: 1;
}

#bg2 {
  z-index: 2;
}

.hero-section .content {
  position: relative;
  z-index: 3;
  color: white;
}

.main-title {
  font-weight: bold;
  font-style: italic;
  font-size: clamp(2.5rem, 10vw, 12rem);
  color: black;
}

.typing-container {
  position: relative;
  height: 2rem;
  margin-bottom: 2rem;
}

.typing-text {
  color: black;
  font-size: 2rem;
  font-style: italic;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid black;
  width: 0ch;
  animation: typing-real 4s steps(32, end) 1s infinite alternate;
}

@keyframes typing-real {
  from {
    width: 0ch;
  }
  to {
    width: 32ch;
  }
}

.vh-container {
  height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.how-it-works-section {
  flex: 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  background-color: #121212;
  color: white;
}

.tile-clean {
  background-color: #1e1e1e;
  border-bottom: 3px solid #00c2ff;
  color: #f0f0f0;
  text-align: center;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.tile-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 194, 255, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tile-clean:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 12px 25px rgba(0, 194, 255, 0.2);
}

.tile-clean:hover::before {
  opacity: 1;
}

.tile-clean h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.tile-clean p {
  font-size: 0.9rem;
  color: #bbbbbb;
  margin: 0;
}

.emoji {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.order-button {
  font-size: 1.2rem;
  border-radius: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.services-section {
  background: #f9f9f9;
padding: 1rem 1rem;
  font-family: "koodak", sans-serif;
}

.services-title {
  font-family: "Titr", sans-serif;
  font-size: 2rem;
  text-align: center;
  color: #111;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ffc107;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.4s ease !important;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.service-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
}


.service-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #ffc107;
}

.service-overlay {
  background: white;
  padding: 1rem;
  text-align: center;
}

.service-overlay h4 {
  font-family: "Titr", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.service-overlay p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-overlay a {
  display: inline-block;
  font-size: 1rem;
  color: white;
  background: #ffc107;
  padding: 0.5rem 1.4rem;
  border-radius: 0; /* square edges */
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: "koodak", sans-serif;
  cursor: pointer; 
transition: background 0.3s ease, transform 0.2s ease;
}


/* English version */
.en-lang .services-section,
.en-lang .service-overlay a {
  font-family: "GOTHICB", sans-serif;
}

.en-lang .services-title,
.en-lang .service-overlay h4 {
  font-family: "GOTHICB", sans-serif;
}

.en-lang .service-overlay p {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  font-family: "koodak", sans-serif;
}

.service-overlay a:hover {
  background: #e6a800;
  transform: scale(1.05);
}

.service-overlay a:active {
  transform: scale(0.98);
  background: #d99900;
}

@media (max-width: 576px) {
  .services-title {
    font-size: 1.5rem;
  }

  .service-overlay p {
    font-size: 0.85rem;
  }

  .service-item img {
    height: 180px;
  }
}

@keyframes glow-border {
  0% {
    opacity: 0.6;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
  100% {
    opacity: 0.6;
    transform: scaleX(1);
  }
}

.persian-ribbon {
  position: relative;
  background-color: #111;
  color: #fff;
  font-family: 'titr', serif;
  height: 50px;
  line-height: 50px;
  font-size: 1.3rem;
  letter-spacing: 1px;
  overflow: hidden;
  z-index: 1000;
  display: none; /* fallback for non-Bootstrap environments */
}

/* Ensure it appears only on mobile */
@media (max-width: 768px) {
  .persian-ribbon {
    display: block;
  }
}

.persian-ribbon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(to right, #00bfff, #1e90ff, #00bfff);
  animation: glow-border 2s ease-in-out infinite;
  border-radius: 4px;
}

/* Language toggle styling */
#lang-toggle {
  position: relative;
  padding: 2px 10px;
  border-radius: 0px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.1s ease;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
}

/* Animated yellow border */
#lang-toggle::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 8px;
  background: linear-gradient(135deg, transparent, #ffc107, transparent);
  background-size: 400% 400%;
  animation: animated-border-gold 8s linear infinite;
  z-index: -1;
  pointer-events: none;
}

/* Yellow glowing effect */
#lang-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.4);
  opacity: 0;
  animation: pulse-glow-gold 6s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

/* Animations */
@keyframes animated-border-gold {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes pulse-glow-gold {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.5;
  }
}

  .contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #222, #111);
    border: 1px solid #333;
    border-radius: 20px;
    z-index: 9999;
    direction: rtl;
    cursor: pointer;
    animation: glow-pulse 2.5s infinite ease-in-out;
    max-width: 220px;
    transition: transform 0.2s ease;
  }

  .contact-widget:hover {
    transform: scale(1.06);
  }

  .titr {
    font-family: 'titr', sans-serif;
    font-size: 1.1rem;
  }

  .koodak {
    font-family: 'koodak', sans-serif;
    font-size: 0.95rem;
  }

  @keyframes glow-pulse {
    0%, 100% {
      box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    }
    50% {
      box-shadow: 0 0 20px rgba(255, 193, 7, 1);
    }
  }

.contact-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #111;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s ease-in-out;
  direction: rtl;
  max-width: 90vw;
  box-sizing: border-box;
}

.contact-text span {
  font-size: 0.9rem;
  line-height: 1.2;
  word-break: break-word;
}

.contact-widget:hover {
    transform: scale(1.05);
}


.contact-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.contact-modal .modal-content {
    background-color: #222;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.contact-modal.d-none {
    display: none;
}
