:root {
    --accent: #fa6464;
    --bg-dark: #070707;
    --card-bg: #ffffff;
    --muted: #7a7a7a;
    --text-dark: #111;
    --transition: 250ms ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html,
  body {
    height: 100%;
  }
  body {
    font-family: "Vazirmatn", sans-serif;
    background-color: #ebe8e8;
    overflow-x: hidden;
  }
  
  .User-panel {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
  }

  /* SIDEBAR */

  .sidebar {
    width: 260px;
    background: linear-gradient(90deg, var(--accent), #ff8b8b);
    position: fixed;
    height: 100vh;
    overflow-y: scroll;
    z-index: 2;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, transform 0.35s ease;
    box-shadow:
      inset 0 0 12px rgba(0,0,0,0.6),
      0 0 35px rgba(250, 100, 100, 0.08);
      overflow-x: hidden;
  }
  
  .brand  {
    border-bottom: 1px solid #ffc1c1;
  }
  .sidebar .sidebar-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .sidebar .brand h1 {
    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 ,#000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .sidebar .brand-title {
    color: var(--white);
    font-weight: 800;
  }
  
  .sidebar .brand-sub {
    color: var(--gray);
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 14px;
    margin: 6px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: 200ms ease;
    background: rgba(255,255,255,0.02);
  }
  
  .nav-link i {
    font-size: 1.05rem;
  }
  .sidebar.collapsed #hidden {
    margin-left: 40px !important;
  }
  .sidebar.collapsed .bi-wallet2 {
    margin-right: 30px;
  }
  .nav-link:hover {
    background: rgba(250, 100, 100, 0.15);
    color: #fff;
    font-weight: 700;
  }
  
  .nav-link.actives {
    background: #ebe8e8;
    color: #860f1b;
    font-weight: 800;
    border-right: 3px solid #860f1b;
    box-shadow: 0 0 12px rgba(250, 100, 100, 0.15), inset 0 0 8px rgba(231, 211, 177, 0.3);
    margin-left: -20px;
    border-radius: 50px;
  }
  .nav-link.active {
    color: #860f1b !important;
  }
  
  .nav-link:focus{
    color: #860f1b !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important; 
  }
  
  .nav-link:active {
    color: #860f1b !important;
  }
  


/* .nav-link.active::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 18px;
    background: #860f1b;    
    top: 21.4%;
    left: -12px;
    border-radius: 0 0 0 24px;
    box-shadow: -1px 3px 0 #ebe8e8 , -6px 10px 0 #ebe8e8;
  }
  .nav-link.active::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 18px;
    background: #860f1b;
    top: 30.6%;
    left: -12px;
    border-radius: 24px 0px 0px 0px;
    box-shadow: 0px -6px 0 #ebe8e8 , -10px -6px 0 #ebe8e8;
  } */

  
  .nav-label {
    display: inline-block;
  }
  
  .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.758);
  }
  
  .btn-toggle {
    background: transparent;
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .sidebar.collapsed {
    width: 130px;
    min-width: 72px;
    overflow: hidden;
  }
  
  .sidebar.collapsed .brand-title,
  .sidebar.collapsed .brand-sub,
  .sidebar.collapsed .nav-label {
    display: none;
  }
  
  .sidebar.collapsed .nav-link {
    justify-content: center;
  }
  #sidebarToggle {
    transition: width 0.26s ease, padding 0.18s ease, border-radius 0.18s ease;
    color: #fff;
  }
  
  #sidebarToggle.icon-only {
    width: 44px;
    padding: 0.35rem;
    border-radius: 999px;
    justify-content: center;
  }
  
  #sidebarToggle.icon-only .toggle-label {
    display: none !important;
  }
  
  #sidebarToggle.icon-only i {
    font-size: 1.05rem;
    margin: 0;
  }
  
  #sidebarToggle i {
    font-size: 1rem;
  }
  @media (max-width: 1199px) {
    .sidebar {
      width: 260px;
    }
  
    .sidebar .brand-title,
    .sidebar .brand-sub,
    .nav-label {
      display: block;
    }
  }
  
  @media (max-width: 991px) {
    .sidebar {
      position: fixed;
      right: 0;
      top: 0;
      bottom: 0;
      transform: translateX(110%);
      z-index: 999;
      display: block;
      box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
      width: 260px;
    }
  
    .sidebar.open-mobile {
      transform: translateX(0);
    }

  }  
  /* end-SIDEBAR */

  /*The main elements*/
  .main-area {
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
    width: calc(100% - 260px);
    margin-right: 260px;
  }
  @media (max-width: 991px) {
    .main-area {
        margin-right: 0;
        width: 100%;
      }
  }
/* TOPBAR */

.topbar {
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 3;
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }

  .notif-dot {
    position: absolute;
    top: 9px;
    right: 11px;
    width: 8px;
    height: 8px;
    background: #860f1b;
    border-radius: 50%;
  }
  .avatar-sm{
    width: 50px;
  }
  .exit {
    background: var(--accent);
    padding: 7px;
    border-radius: 14px;
    cursor: pointer;
  }
  .exit:hover {
    background: #860f1b;
    transition: 0.25s ease;
  }
  .exit i {
    font-size: 16px;
    position: relative;
    bottom: -3px;
  }
  .exit h4 {
    font-size: 15px;
    position: relative;
    top: -2px;
  }
  /* BUTTONS */


.btn-alarm {
    background: linear-gradient(90deg, var(--accent), #ff8b8b);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent);
    border-radius: 50%;
    padding: 8px 12px;
  }
  .btn-ghost i{
    font-size: 22px;
    color: #860f1b;
  }
  /*modal*/

.wallet-modal {
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.881);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 10000;
}

.wallet-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(255,120,120,0.25), rgba(255, 255, 255, 0.2));
}

.wallet-header h5 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.wallet-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #444;
  transition: 0.25s;
}

.wallet-close:hover {
  color: #860f1b;
}

.wallet-body {
  padding: 25px;
}

.wallet-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 22px;
  display: inline-block;
}

.wallet-input-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-input {
  width: auto;
  text-align: center;
  font-size: 18px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-weight: 600;
  margin-left: 10px;
  margin-right: 10px;
}
.amount-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  border: none;
  background: linear-gradient(90deg, #ff6b6b, #ff9a9a);
  color: white;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.amount-btn:hover {
  transform: translateY(-2px);
}

.wallet-footer {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.wallet-submit-btn {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #ff5f5f, #ff8f8f);
  border: none;
  border-radius: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 5px 14px rgba(255,120,120,0.35);
}

.wallet-submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--accent), #fe4242);
  transition: 0.9s ease-out;
}

  /*end modal*/
  /*The main card*/
  .profile-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px;
  }
  
  .profile-card {
    width: 100%;
    display: flex;
    padding:5px 40px;
    border-radius: 28px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 25px 45px rgba(0,0,0,0.07),
    0 8px 18px rgba(255,70,70,0.18);
    position: relative;
  }
  .profile-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 26px;
    background: var(--accent);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    border-radius: 0 28px 0 0;
  }
  .profile-card h5 {
    font-size: 20px;
    font-weight: 500;
    color: #2a2a2a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    letter-spacing: -0.2px;
    text-align: right;
    padding-bottom: 12px;
    position: relative;
    margin-top: 5px;
  }
  
  
  .profile-card h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg,#ff4d4d,#ff9999);
    border-radius: 45%;
  }
  
  /* --- Left Area (Avatar) --- */
  .profile-left {
    width: 260px;
    text-align: center;
    margin-right: 30px;
    margin-top: 55px;
  }
  
  .profile-photo-upload {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    background: #f9f9f9;
    box-shadow:
      0 4px 12px rgba(0,0,0,0.08),
      0 0 0 6px rgba(250,100,100,0.15);
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s ease;
  }
  
  .profile-photo-upload:hover {
    transform: scale(1.03);
  }
  .upload-title {
    font-size: 20px;
    font-weight: 600;
    color: #473939;
    letter-spacing: -0.3px;
    position: relative;
  }
  
  .upload-title::before,
  .upload-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--accent);
  }
  
  .upload-title::before {
    right: 30px;
    transform: translateY(-50%);
  }
  
  .upload-title::after {
    left: 30px;
    transform: translateY(-50%);
  }
  

  .upload-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    border: 2px dashed #ddd !important;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
  }
  
  .upload-card:hover {
    border-color: var(--accent) !important;
  }
  
  .upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }
  
  .default-avatar {
    width: 120px;
    opacity: 0.85;
    margin-bottom: 10px;
    transition: 0.3s ease;
  }
  
  .upload-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
  }
  
  .upload-text {
    color: #777;
    font-size: 14px;
  }

  .preview-img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
    transition: 0.3s ease;
  }

  .btn-remove {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4f4f;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.2s ease;
    font-size: 13px;
  }
  
  .btn-remove:hover {
    background: #d63030;
  }
  
  /* --- Right Area (Inputs) --- */
  .profile-right {
    width: 100%;
  }
  /* -------- Labels -------- */
  .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
    text-align: right;
  }

  .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 !important;
    border-color: var(--accent);
    box-shadow: none;
  }
  
  .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); }
  }
  
  .edit-btn {
    margin-top: 35px;
    background: linear-gradient(90deg, #ff5f5f, #ff8f8f);
    border: none;
    color: #fff;
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
  }
  
  .edit-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: 0.4s;
  }
  
  .edit-btn:hover::after {
    left: 100%;
  }
  .edit-btn:hover {
    background: linear-gradient(90deg, var(--accent), #fe4242);
  }
  
  @media (max-width: 1150px) {

    .profile-card {
      flex-direction: column; 
      align-items: center;
      text-align: center;
    }
  
    .profile-right {
      width: 100%;
      margin-right: 0;
      margin-top: 30px;
    }

    .profile-right .col-12,
    .profile-right .col-md-3 {
      width: 100% !important;
      max-width: 100%;
    }
    .profile-left {
      margin-right: 0px;
      margin-top: 0px;
    }
    .upload-title {
      margin-top: 30px;
    }
  }
  @media (max-width: 430px) {
    .exit {
      padding: 5px;
    }
    .exit h4 {
      font-size: 12px;
    }
    .exit i {
      font-size: 14px;
    }
    .avatar-sm {
      width: 45px;
    }
    .btn-alarm {
      padding: 6px 10px;
    }
    .small, small {
      font-size: .800em;
    }
    .alarm-bell {
      gap: 5px !important;
    } 
    .wallet-input {
      width: 200px;
    }
  }

