/* ===== Global Styles ===== */
  :root{
    --purple:#9B4DFF;
    --light-purple:#F5EDFF;
    --black-text-color:#202224;
  }

  html, body {
    background: #f5f6fa;
  }

  html {
    height: 100%;
  }

  body {
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--black-text-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .purple {
     color:var(--purple);
  }
  
  /* ===== Container ===== */
  .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 1760px;
  }
  @media(min-width:768px){
    .container{
      padding: 0 2rem;
    }
  }
  @media(min-width:1024px){
    .container{
      padding: 0 3rem;
    }
  }
  @media(min-width:2000px){
    .container{
      max-width: 1920px;
    }
  }

  
  /* ===== Form Inputs (Less Flux Style) ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 1rem 1.4rem;
  font-size: 1.4rem;
  border: 1px solid #DCE5EA; 
  border-radius: 1rem; 
  background-color: #fff;
  color: var(--black-text-color);
  outline: none;
  box-sizing: border-box;
  transition: border 0.25s ease, box-shadow 0.25s ease;
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  border-radius: 1rem;
  line-height: 1;
}

input::placeholder,
textarea::placeholder {
  color: #6E6F71;
  font-size: 1.6rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
}

@media(max-width:767px){
  input::placeholder,
  textarea::placeholder, select{
    font-size: 1.4rem;
  }
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.5rem; /* space for the icon */
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  opacity: 0.6;
  color: #333;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password, .toggle-password svg{
  width: 23px;
  height: 23px;
}

.toggle-password:hover {
  opacity: 1;
  color: var(--purple);
}

.toggle-password.visible svg {
  stroke: var(--purple);
}

/* Labels */
label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 1rem;
}



/* Textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  margin-right: 0.6rem;
}

/* Checkbox Group Styling */
.checkbox-group {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: var(--black-text-color);
}

input:valid,
select:valid,
textarea:valid {
  border-color: #cfc0f9;
}

/* Footer */
.site-footer {
  background: #f7f7f7;
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #F5EDFF;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  font-size: 1.2rem;
  color: #6c757d;
  font-weight: 400;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 1.2rem;
  color: #6c757d;
  text-decoration: none;
  font-weight: 400;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--black-text-color);
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* Primary Button */
  .btn {
    display: inline-block;
    border-radius: .5rem;
    padding: 0.4rem 1.6rem;
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
    margin: .5rem;
    margin-left: 0;
    text-transform: uppercase;
    text-align: center;
    min-width: 190px;
    
  }
  
  .btn-primary{
    background-color: var(--purple);
    color: #fff;
    border:1px solid var(--purple);
  }

  .btn-primary:hover {
    background-color: #7638C6;
  }
  
  /* Secondary Button */
  .btn-secondary, .btn-sm {
    background-color: #fff;
    color: var(--purple);
    border: 1px solid var(--purple);
  }
  
  .btn-secondary:hover {
    background: #F5EDFF;
  }

  .btn-sm{
    border-radius: 5.5rem;
    min-width: 8rem;
  }

  .btn-sm:hover{
    background: rgba(155, 77, 255, 0.20);
  }

  /* LF Button */
  .lf-btn {
    display: inline-block;
    min-width: 207px;
    padding: 10px 20px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 7px;
    border: 1px solid #9B4DFF;
    background: #fff;
    color: #9B4DFF;
    margin: 9px;
    text-decoration: none;
    line-height: 1;
  }

  /* btn back */
  .btn-back{
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.6rem;
    color:#6E6F71;
    text-transform: unset;
    padding: 0;
    border:0;
    margin:0;
  }

  .btn-back svg{
    --currentColor:#6E6F71;
  }

  .btn-back:hover{
    color:var(--purple)
  }

  .btn-back:hover svg{
    --currentColor:var(--purple);
  }

  @media(max-width:850px){
    .btn{
      font-size: 1.2rem;
    }
  }

p > a{
  color:var(--purple);
}

/* ==== Main Layout ==== */
  .main-layout {
    display: flex;
    padding: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: flex-start;
    flex: 1;
  }

  /* ===== Sidebar Layout ===== */
  aside.main-navigation {
    width: 260px;
    background: #fff;
    padding: 1.6rem 4rem;
    border-right: 1px solid #eee;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .logo-container a{
    display: inline-block;
    max-width: 160px;
    width: 100%;
    text-align: center;
  }

  .logo-container .mobile-logo{
    display: none;
    margin:0 auto;
  }
  
  /* Profile Card */
  .profile-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
  
  .profile-avatar {
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: inline-flex;
    background-color: var(--light-purple);
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .profile-avatar span{
    font-size: 2rem;
    color: var(--purple);
    font-weight: 800;
    line-height: 1;
   }
  
  .profile-meta {
    display: inline-flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    gap:.5rem;
  }
  
  .profile-level {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: var(--purple);
    text-align: center;
    border-radius: 2rem;
    padding: .4rem .7rem;
    min-width: 50px;
    line-height: 1;
  }
  
  .profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black-text-color);;
    line-height: 1;
    word-break: break-word;
  }
  
  .profile-edit-link {
    font-size: 1rem;
    color: var(--purple);
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
  }
  
  /* Navigation */
  .nav-section {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0 -2rem;
  }
  
  .nav-item {
    margin-bottom: .5rem;
  }
  
  .nav-item{
    transition:.4s;
    border-radius: 1rem;
  }

  .nav-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--black-text-color);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    transition:.4s;
    padding: 1.8rem 2.4rem;
    letter-spacing: 0.3px;
  }

  .nav-link span{
    flex:1;
  }
  
  .nav-item.active, .nav-item:hover {
    background-color: #F5F6FA;
  }

  .nav-item.active .nav-link, .nav-item:hover .nav-link, .nav-link.logout-link{
    color: var(--purple);
  }

  @media(max-width:1100px){
    aside.main-navigation{
      padding: 1.6rem 2rem;
      width:230px;
    }
    .navbar-nav{
      margin:0 -1rem;
    }
  }

  @media(max-width:850px){
    aside.main-navigation{
      padding: 1.6rem 1rem;
      width: 75px;
      border-radius: 1.5rem;
    }
    .logo-container .desktop-logo{
      display: none;
    }
    .logo-container .mobile-logo{
      display: block;
    }
    .profile-avatar{
      width: 100%;
    }
    .profile-avatar span{
      font-size: 1.6rem;
    }
    .profile-card{
      flex-direction: column;
    }
    .profile-meta{
      gap:.8rem;
      justify-content: center;
      align-items: center;
    }
    .profile-level{
      font-size: 1rem;
    }
    .profile-edit-link{
      font-size: .8rem;
      text-align: center;
    }
    .profile-name{
      display: none;
    }
    .nav-item{
      border-radius: 0;
    }
    .nav-link{
      padding: 1rem;
      justify-content: center;
    }
    .nav-link span{
      display: none;
    }
  }

  
  /* ===== Notification Bubble ===== */
  .lf-notice.container{
    padding: 0;
  }
  .lf-info-bubble {
    width: 100%;
    border-radius: .8rem;
    background: #f5edff;
    padding: 10px 20px;
    padding-right: 40px;
    color: #9447f5;
    border: 1px solid #9b4dff36;
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .lf-info-bubble:last-of-type{
    margin-bottom: 0;
  }
  
  .lf-info-bubble .lf-info-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
  }
  
  .lf-info-bubble .lf-info-body {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
  }
  
  .lf-info-bubble .lf-btn {
    min-width: 100px;
    margin:.5rem 0 0 0;
  }
  
  .lf-info-bubble .close-wrapper {
    border: none;
    position: absolute;
    right: 15px;
    width: 15px;
    cursor:pointer;
  }
  .lf-info-bubble > img{
    padding-top:2px;
  }
  @media(max-width:767px){
    .lf-info-bubble{
      padding: 10px;
      padding-right: 40px;
      gap: 6px;
    }
    .lf-info-bubble > img{
      height: 10px;
    }
    .lf-info-bubble .lf-info-body{
      font-size: 11px;
    }
  }
  
  /* ===== Main Content ===== */
  .main-content {
    flex: 1;
    min-width: 0;
  }

  .main-content{
    padding: 0 2rem;
    padding-right: 0;
    gap:2rem;
    display: inline-flex;
    flex-direction: column;
  }

  .box-content{
    background: #fff;
    padding: 3rem;
    border-radius: 1.4rem;
  }

  .box-content >  h3 {
    padding-bottom:15px;
  }

  .box-title{
    font-size: 1.8rem;
    letter-spacing: -0.114px;
    font-weight: 700;
    line-height: 2rem;
    margin-bottom:1.5rem;
  }
  .box-title span{
    color:var(--purple);
  }
  .box-subtitle{
    color:#6E6F71;
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .main-content > .btn-container{
    margin-top: -1rem;
    margin-bottom: -1rem;
  }

  @media(max-width:1100px){
    .box-content{
      padding: 2rem;
    }
  }

  @media(max-width:767px){
    .main-content{
      padding: 0 1rem;
      padding-right: 0;
      gap:1rem;
    }

    .box-content{
      padding: 2rem 1rem;
    }

    .box-title{
      font-size: 1.6rem;
    }

    .box-subtitle{
      font-size: 1.4rem;
    }
  }

  /* ===== Banner ==== */
  .banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
  }

  .banner-logo{
    display: flex;
    width: 36px;
    height: 36px;
    padding: 7px 8px;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    background: rgba(155, 77, 255, 0.10);
  }

  .banner h1{
    flex: 1;
    font-size: 2rem;
    letter-spacing: -0.114px;
    line-height: 3rem;
    font-weight: 700;
  }

  @media(max-width:850px){
    .banner h1{
      font-size: 1.8rem;
    }
  }

  @media(max-width:767px){
    .banner h1{
      font-size: 1.6rem;
    }
  }
  
  /* ===== Table Styling ===== */
  .lessflux-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 1.2rem;
    overflow: hidden;
    font-size: 14px;
    margin-top: 2rem;
  }
  
  .lessflux-table thead {
    background-color: #f6f0ff;
    text-align: left;
  }
  
  .lessflux-table th,
  .lessflux-table td {
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
  }
  .lessflux-table td {
    color: #6E6F71;
  }

  table.dataTable.stripe>tbody>tr:nth-child(odd)>*, table.dataTable.display>tbody>tr:nth-child(odd)>*{
    box-shadow: unset!important;
  }
  
  /* ===== Table Badges ===== */
  .badge {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 1.5rem;
    text-align: center;
    min-width: 100px;
  }
  
  .badge-active,  .badge-resolved {
    background-color: #6bde8a7d;
    color: #32a852;
  }
  
  .badge-inactive{
    background-color: #f5c8cb;
    color: #a32330;
  }

  .badge-primary{
    color: #00B69B;
    background: rgba(0, 182, 155, 0.20);
  }

  .status-completed{
    color: #00B69B;
    background: rgba(0, 182, 155, 0.20);
  }

  .status-pending, .badge-in-progress{
    color: rgba(255, 192, 89, 1);
    background: rgba(255, 192, 89, 0.2);
  }

  .status-declined{
    color: rgba(239, 56, 38, 1);
    background: rgba(239, 56, 38, 0.2);
  }

  .badge-closed{
    color:rgba(110, 111, 113, 1);
    background:rgba(110, 111, 113, 0.2);
  }
  
  /* ===== Table Buttons ===== */
  .action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
  }

  /* ===== Billing Address Cards ===== */
.billing-address-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .billing-address-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    background: #f6f0ff;
    border-radius: 1.6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: background 0.3s ease;
  }
  
  .billing-address-card:hover {
    background: #f2eaff;
  }
  
  .address-details {
    font-size: 1.4rem;
    color: #333;
    line-height: 1.6;
    max-width: 75%;
    word-break: break-word;
  }
  
  .address-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
  }
  
  .address-actions .btn-secondary {
    padding: 0.6rem 1.4rem;
    font-size: 1.2rem;
  }
  
  .address-actions form {
    display: inline-block;
  }
  
  /* Inline form for cart button */
  .inline-form {
    display: inline-block;
    margin: 0;
  }
  
  /* Table-specific badge for resources */
  .badge-resource {
    display: inline-block;
    background-color: #f1e7ff;
    color: #7a41d9;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    margin: 0.2rem 0.4rem 0.2rem 0;
    border-radius: 2rem;
  }
  
  /* Empty row styling */
  .empty-row {
    text-align: center;
    padding: 2rem;
    font-size: 1.4rem;
    color: #777;
  }