
:root {
  --accent: #fa6464; 
  --bg-dark: #070707;
  --card-bg: #ffffff;
  --muted: #7a7a7a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-dark: #111;
  --radius: 14px;
  --transition: 250ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Vazirmatn", sans-serif;
  background-color: #ebe8e8;
  padding: 3.5rem 1rem;
  overflow-x: hidden;
}


/* Container centering */
.page-root {
  display: block;
}


/* Card */
.main-card {
  max-width: 1100px;
  width: 100%;
}
.card {
  background: var(--card-bg);
  border-radius: calc(var(--radius) + 4px);
  overflow: visible;
  box-shadow: 0 12px 50px rgba(2, 2, 2, 0.45);
  border: none;
  
}

/* Accent bar */
.accent-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), #ff8b8b, var(--accent));
}

/* Header */
.header-row .page-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #222;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
  text-transform: capitalize;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(90deg, #860f1b, #080707);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-row .page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, #b02a37, transparent);
  transform: translateX(-50%);
  border-radius: 3px;
  opacity: 0.8;
  transition: all 0.4s ease;
}

.header-row .page-title:hover::after {
  width: 80%;
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  object-fit: cover;
}

/* Signout button */
.signout-btn {
  background-color: transparent;
  border: 1px solid #ccc;
  color: #444;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  transition: all 0.2s;
}
.signout-btn:hover {
  background-color: #f8f8f8;
  border-color: #aaa;
}

/* Stepper wrapper */
.stepper-wrap {
  padding: 0.6rem 0 1rem 0;
  margin-bottom: 0.6rem;
}
.stepper-inner {
  position: relative;
  padding: 1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.step-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 35%;
  height: 2px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 0%,
    var(--accent) 15%,
    rgba(255, 255, 255, 0.2) 30%,
    var(--accent) 45%,
    rgba(255, 255, 255, 0.2) 60%,
    var(--accent) 75%,
    rgba(255, 255, 255, 0.2) 100%
  );
  background-size: 200% auto;
  box-shadow:
    0 0 15px rgba(var(--accent-rgb), 0.7),
    0 0 30px rgba(var(--accent-rgb), 0.4),
    inset 0 0 6px rgba(255, 255, 255, 0.3);
  filter: brightness(1.2) contrast(1.05);
  animation: flowLine 5s linear infinite, glowShift 4s ease-in-out infinite;
  transform-origin: center;
  z-index: 1;
}

@keyframes flowLine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: 0% center;
  }
}
@keyframes glowShift {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(var(--accent-rgb), 0.6),
      0 0 30px rgba(var(--accent-rgb), 0.3),
      inset 0 0 6px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 25px rgba(var(--accent-rgb), 0.9),
      0 0 40px rgba(var(--accent-rgb), 0.5),
      inset 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

.stepper {
  position: relative;
  z-index: 2;
  gap: 0.3rem;
  justify-content: space-between;
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  min-width: max-content;
}
.step-item {
  flex: 0 0 auto;
  width: 100px;
  min-width: 100px;
  margin: 0 6px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-caption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #444;
  font-weight: 600;
}

.step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fa6464;
  color: #fa6464;
  font-weight: 600;
  font-size: 1.1rem;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
}
.step-circle.completed {
  background: linear-gradient(90deg, var(--accent), #ff8b8b);
  color: #fff;
  box-shadow: 0 0 20px rgba(250, 100, 100, 0.3);
  transform: translateY(-6px);
  border: none;
}

.step-circle.completed::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 147, 147, 0.6);
  animation: rotateRing 5s linear infinite;
  opacity: 1;
  z-index: -1;
  filter: drop-shadow(0 0 10px #ff9393);
}


.step-circle.active {
  background: linear-gradient(180deg, #fff, #fff);
  color: var(--accent);
  box-shadow: 0 10px 28px rgba(250, 100, 100, 0.09);
  transform: translateY(-4px);
}

@media (max-width: 992px) {
  .stepper-inner {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  .stepper {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }
}
@media (max-width: 992px) {
  .step-line {
    display: none;
  }
}
@media (max-width: 500px) {
  .step-item {
    margin: 0px;
    margin-left: -10px;
  }
  .step-caption {
    font-size: 12px;
  }
}

/* Alert bar */
.alert-important {
  background: linear-gradient(90deg, var(--accent), #ff8b8b);
  color: #fff;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 34px rgba(250, 100, 100, 0.12);
}

/* Avatar block */

.avatar-block {
  background: linear-gradient(180deg, #ffffff, #f9f9f9);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}


.avatar-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #836a6a, #f08080);
  border-bottom-left-radius: 50% 40%;
  border-bottom-right-radius: 50% 40%;
  animation: wave 6s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(250, 100, 100, 0.4);
  z-index: 0;
}


.avatar-block::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 140, 140, 0.08),
    transparent 70%
  );
  transform: translateX(-50%);
  z-index: 0;
}

.avatar-block:hover {
  transform: translateY(-4px);
}

.avatar-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(180deg, #fff, #f6f6f6);
  border: 3px solid rgba(255, 122, 122, 0.25);
  overflow: hidden;
  transition:all 0.3s ease;
}
.avatar-circle.has-image {
  border: 2px solid #fa6464;
  box-shadow: 0 0 12px rgba(250, 100, 100, 0.4);
}


.avatar-circle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}


.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-text {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.3px;
  z-index: 1;
  text-shadow: 0 1px 0 #fff;
}


.btn-outline-accent {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition:all 0.3s ease;
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
}

.btn-link.text-danger {
  font-size: 0.9rem;
  color: #ff5555 !important;
  text-decoration: none;
  transition:all 0.3s ease;
  cursor: pointer;
}

.btn-link.text-danger:hover {
  color: #ff0000 !important;
  text-decoration: underline;
  border: 1px solid var(--accent);
}
#uploadBtn {
  position: relative;
  z-index: 1;
}

#removeAvatar {
  position: relative;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
}
.avatar-block hr {
  margin: 2rem auto;
  border: none;
  border-top: 1px dashed rgba(255, 122, 122, 0.2);
  width: 80%;
}

.summary {
  background: linear-gradient(90deg, #fff, #fff5f5);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.9;
  border: 1px solid rgba(255, 122, 122, 0.15);
  position: relative;
}

.summary strong {
  color: var(--accent);
}

.text-srtong {
  text-align: right;
}

@media (max-width: 992px) {
  .avatar-block {
    padding: 1.5rem;
  }

  .avatar-circle {
    width: 130px;
    height: 130px;
  }

  .summary {
    font-size: 0.85rem;
  }
}


/* Buttons */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  border: none;
  transition: all var(--transition);
}
.btn-accent:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: white;
}
/* .btn-outline-accent {
  border: 1px solid rgba(250, 100, 100, 0.18);
  color: #222;
} */


  /* -------- Labels -------- */
  .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
  }

  .form-control,
  .form-select {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fcfcfc;
    border-radius: 12px;
    padding: 0.50rem 1rem;
    font-weight: 500;
    font-size: 12px;
    color: #222;
    box-shadow: none;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
  }
  
  .form-control::placeholder {
    color: #aaa;
    opacity: 0.9;
  }

  .form-control:hover,
  .form-select:hover {
    border-color: rgba(0, 0, 0, 0.18);
  }

  .form-control:focus,
  .form-select:focus {
    outline: none;
    border-color: var(--accent);
  }
  
  .form-control:focus::after,
  .form-select:focus::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, rgba(250,100,100,0), var(--accent), rgba(250,100,100,0));
    border-radius: 4px;
    animation: glowline 0.35s ease forwards;
  }
  
  @keyframes glowline {
    from { opacity: 0; transform: scaleX(0.6); }
    to { opacity: 1; transform: scaleX(1); }
  }

  .composite-email {
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse; 
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: #fcfcfc;
    transition: all 0.25s ease;
    position: relative;
  }
  
  .composite-email input {
    border: none;
    background: transparent;
    padding: 0.85rem 10px;
    font-weight: 500;
    color: #222;
  }
  
  .composite-email select {
    width: 15%;
    min-width: 100px;
    border: none;
    background: #eeeeeed4;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 500;
    color: #333;
    border-radius: 0px;
    direction: ltr;
    text-align: center;
    font-size: 11px;
  }
  
  .composite-email input:focus,
  .composite-email select:focus {
    outline: none;
  }
  
  .composite-email:focus-within {
    border-color: var(--accent);
    background: #fff;
  }
  
  .composite-email::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(270deg, rgba(250,100,100,0), var(--accent), rgba(250,100,100,0));
    border-radius: 4px;
    opacity: 0;
    transform: scaleX(0.6);
    transition: all 0.35s ease;
    pointer-events: none;
  }
  
  
  .composite-email:focus-within::after {
    opacity: 0.5;
    transform: scaleX(1);
  }

  .form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23999' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.516 7.548l4.484 4.443 4.484-4.443L16 8.986l-6 5.986-6-5.986z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 14px;
  }
  

  .form-text {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 3px;
  }
  
  /* -------- Small Tweaks -------- */
  input[type="date"],
  input[type="number"],
  input[type="tel"],
  input[type="password"],
  input[type="text"],
  select {
    transition: border-color 0.2s ease;
  }
  
  input:focus-visible,
  select:focus-visible {
    outline: none;
  }
  
  @keyframes softPulse {
    0% { box-shadow: 0 0 0 rgba(250,100,100,0); }
    50% { box-shadow: 0 0 8px rgba(250,100,100,0.25); }
    100% { box-shadow: 0 0 0 rgba(250,100,100,0); }
  }
  
  .form-control:focus,
  .form-select:focus,
  .composite-email:focus-within {
    animation: softPulse 0.6s ease;
  }
  .form-control:focus,
  .form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #fa6464 !important;  
    transition: border-color 0.25s ease, background-color 0.25s ease;
  }
    
  
@media (max-width: 576px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .header-left,
  .header-right {
    width: 100%;
  }
  .flag {
    width: 32px;
    height: 30px;
  }
  .header-row .page-title {
    font-size: 15px;
  }
  .avatar-circle {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }
  .btn-outline-secondary {
    padding: 10px !important;
  }
  .btn-accent {
    padding: 10px !important;
  }
}

.card .text-muted {
  color: #6b6b6b;
  text-align: right !important;
}
