/* #494949 
  #1f2937
  
  */
/* Basic reset and app structure */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
}

.app {
    min-height: 100vh;
    position: relative;
}

.screen {
    display: none;
    /* min-height: 100vh; */
}

.screen.active {
    display: block;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#appTryon .navbar,#appTryon #appHeader{
  position:fixed;
  width:100%;
  top:0;
  left:0;
    padding: 0px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
  backdrop-filter: blur(10px);
  color: #fff;
 
}
.auth-header {
    position: relative;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.auth-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Animation for forms */
.auth-form {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay for when auth screen is active */
#authScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    display: none; /* Hidden by default */
    padding: 0;
}

#authScreen.active {
    display: block; /* Show when active class is added */
}
.auth-header {
    position: relative;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.auth-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Animation for forms */
.auth-form {
    animation: slideIn 0.3s ease;
}

#appTryon .garment-header {
padding: 12px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#appTryon .selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
#appTryon .selected-preview-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #2575fc;
}
#appTryon .photo-grid, #appTryon .thumb-grid  {
   display: inline-flex;
    align-items: anchor-center;
    gap: 15px;
    padding: 13px;
    padding-left: 0;   
    white-space: nowrap;
        margin-left: 145px;
}
#appTryon .allContent.expanded_view .photo-grid, #appTryon .allContent.expanded_view .thumb-grid {
      display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 50px;
    margin-left: 0;
    height: calc(100vh - 70px);
     overflow-y: auto;
    overflow-x: hidden;
        align-content: flex-start;
}
#appTryon .photo-grid .photo-item:nth-child(1) , #appTryon .thumb-grid :nth-child(1){
    grid-column: 2 / 3; /* columns 1–2 */
}
#appTryon #renderedContent {
    position: relative;
}
#appTryon #toggleExpandBtn {
position: absolute;
top: -30px;
    right: 57px;
    background: #323232;
    padding: 0;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    /* gap: 4px; */ 
    align-items: center;
    width: 30px;
    display: flex;
    height: 30px;
    justify-content: center;
        z-index: 9;
            transition: all 0.2s ease;
}
#appTryon .allContent #toggleExpandBtn {
  display: none;
      transition: all 0.2s ease;
}
#appTryon .allContent.tabsOpen #toggleExpandBtn {
  display: flex;
}
#appTryon .allContent.tabsOpen.expanded_view #toggleExpandBtn {
top:10px;
}
#garmentsContent.tab-content{
padding-top:0 ;
}

/* #garmentScroll > :first-child{
    grid-column: span 2;
} */
#photosContent, #garmentsContent{
overflow-x: auto;
display: block;
 
}
#tryonsContent{
display: flex;
}

/* garment view */
/* View button styling for garment items */
.view-btn {
position: absolute;
    top: 3px;
    left: 3px;
    background: rgb(45 42 42 / 90%);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.1);
}

/* Simple modal for viewing garment */
.garment-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.garment-view-modal.active {
    display: flex;
}

.garment-view-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.garment-view-modal-image {
    width: auto;
     height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-view-modal {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgb(0 0 0 / 80%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 22px;
    transition: all 0.2s ease;
    z-index: 99999;
    align-items: center;
    justify-content: center
}

.close-view-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.garment-view-modal-content {
    cursor: zoom-in;
     max-width: 100%;
    max-height: 100%;
    height: 100vh;
}

.garment-view-modal-content.zoomed {
    cursor: zoom-out;
}

.garment-view-modal-content.zoomed .garment-view-modal-image {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

.garment-view-modal-image {
    transition: transform 0.3s ease;
}
/* garment view */
.hidden{
  display: none;
}
.app {
    width: 100%;
    /* max-width: 768px; */
    /* min-height: 100vh; */
    /* background: #fff; */
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
  }
#studioView{
  height: 100%;
}
  /* ---------- SCREENS ---------- */
  .screen {
    display: none;
    width: 100%;
    /* height: 100vh; */
    overflow-y: auto;
  }

  .screen.active {
    display: flex;
    flex-direction: column;
  }

  /* ---------- AUTH SCREENS ---------- */


  .auth-container {   
    padding: 24px;
   height: calc(100vh - 10px);
    width: 100%;
    z-index: 999999;
    border-radius: 0;
    top: 0;
    position: absolute;
    background: #fff;
    display: none;
  }

.logo img {
    width: 100%;
}
.logo {
/* font-size: 48px; */
    /* margin-bottom: 16px; */
    /* position: absolute; */
    /* top: 0;
    left: 0; */
    width: 155px;
    /* height: inherit; */
}

.auth-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #b73336;
}

  .auth-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
  }

  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
  }

  .input-group {
    position: relative;
  }

  .form-input {
    display: flex;
    align-items: center;
    background: rgb(95 88 88 / 10%);
    border-radius: 8px;
    padding: 2px 16px;
    border: 1px solid #dadcd9;
    transition: border-color 0.3s;
  }

  .form-input:focus-within {
    border-color:#5757578c;
  }

  .form-input input, .form-input select {
    flex: 1;
    background: transparent;
    border: none;
color: #1f2937;
    font-size: 16px;
    padding: 10px 0;
    outline: none;
    width: 100%;
  }

  .form-input input::placeholder, .form-input select {
    color: #1f293791;
  }

  .form-input select option {
    color: #333;
  }

  .otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
  }

  .otp-input {
    width: 50px;
    height: 60px;
    border: none;
    background: #4747471a;
    border-radius: 8px;
    color: #1f2937;
    font-size: 24px;
    text-align: center;
    outline: none;
    transition: background 0.3s;
  }

  .otp-input:focus {
    background:#00000026;
  }

  .btn {
background: #3d4653;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .btn:active {
    transform: translateY(0);
  }

  .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .resend-otp {
    margin-top: 16px;
    color: #575757;
    font-size: 14px;
  }

  .resend-link {
    color: #575757;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    cursor: pointer;
  }

  .error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 8px;
    display: none;
  }

  .auth-switch {
    margin-top: 24px;
    color: #575757d4;
    font-size: 14px;
  }

  .auth-link {
 color: #575757;
    font-weight: 600;
    margin-left: 4px;
    cursor: pointer;
    text-decoration: underline;
  }

  /* ---------- ONBOARDING GUIDE ---------- */
  .guide-screen {
    background: white;
  }

  .guide-container {
    height: 100%;
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    text-align: center;
    background: #1f2937;
  }

  .guide-step {
    display: none;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
  }

  .guide-step.active {
    display: flex;
    animation: fadeIn 0.5s ease;
  }

  .guide-icon {
    width: 100%;
    height: auto;

border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 48px;
    color: #8b5cf6;
  }
  .guide-icon img {
width: 80%;
    height: auto;
}

  .guide-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
  }

  .guide-description {
    font-size: 16px;
   color: #ffffff;
    line-height: 1.5;
    margin-bottom: 40px;
  }

  .guide-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
  }

  .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4b5563;
    transition: background 0.3s;
  }

  .progress-dot.active {
background: #fff;;
    transform: scale(1.2);
  }

  .skip-guide {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
color: #ffffff;
    font-size: 14px;
    cursor: pointer;
  }

  /* ---------- MAIN APP SCREEN ---------- */
  .app-screen {
    display: none;
    flex-direction: column;
  }

  .app-screen.active {
    display: flex;
  }

  header {
    color: #1c1919;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* max-width: 768px; */
    margin: auto;
    z-index: 50;
    /* border-bottom: 1px solid #e2e8f0;
        background: #fff; */
  }

  /* header span {
    font-weight: 600;
  } */

  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    color: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
        display: none;
  }

  .menu-btn {
    background: none;
    border: none;
    color: #1f2937;
    font-size: 22px;
    cursor: pointer;
  }

  .menu {
    position: absolute;
    right: 12px;
    top: 52px;
    width: 180px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    display: none;
  }

  .menu button {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
  }

  .menu button:hover {
    background: #f3f4f6;
  }

  .menu .logout {
    color: #ef4444;
  }

  main {
    overflow-y: auto;
    padding: 22px;
        padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .uploaded-box {
    flex: 1;

    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  /* div#uploadBox img {
    height: 100%;
    width: auto;
} */

  .upload-actions {
    position: absolute;
    top: 100px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
  }

  .upload-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #798087;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upload-box p:first-child {
    color: #8b5cf6;
    font-weight: 500;
  }

  .upload-box p:last-child {
    font-size: 12px;
    color: #a78bfa;
    margin-top: 4px;
  }

  .progress {
       justify-content: center;
       position: fixed;
    z-index: 9;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
        flex-direction: column;
    align-items: center;
  }

  .uploaded-image {

    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    width: 100%;
    height: 100%;
object-fit: contain;
    top: 0;
    left: 0;
    display: none;

  }

  .action-bar {
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    
  }

  .upload-btn {
    left: 26px;
    top: 26px;
    border: none;
    color: #4b5563;
    /* display: flex; */
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 16px;
  border: 1px solid #cbd5e1;
    background: #fff;
    flex: 1;
    padding: 11px; 
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    position: absolute;
    border-radius: 8px;
    z-index: 99;
  }

  .tryon-btn {
    background: #bd4346;
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    position: fixed;
    bottom: 0;
    z-index: 9;
    transform: translate(-50%, -50%);
    bottom: 140px;
    left: 50%;
    width: 30%;
  }

  .tryon-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
  }

  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* max-width: 768px; */
    margin: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
        z-index: 9;
  }

  .allContent {
    
flex: 1;
    /* overflow: hidden; */
    position: fixed;
    width: 100%;
    bottom: 0;
    background: #fff;
       z-index: 9999;
  }
  .allContent.tabsOpen{
    min-height: 160px;
  }
.allContent.expanded_view{
  padding-left: 0;
  height: 100vh;
padding-top: 0;
}
  .footer-gap {
    height: 12px;
    background: #f3f4f6;
    margin: 12px;
    border-radius: 6px;
  }

  .tabs {
    display: flex;
    font-size: 14px;
    position: relative;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    justify-content: space-around;  
  }

  .tabs button {
    display: flex;
    align-items: center;
    border: none;
    gap: 10px;
      flex-direction: column;
    background: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 10px;
    height: 50px;
    gap: 1;
    text-transform: uppercase;
    border-radius: 10px;
        padding: 8px;
    background: #ffffff; 
  }
 .tabs button .fas{
  font-size: 12px;
 }
  .tabs .active {
    background: #ededed;
    color: #bc1d20;
  }

  .tab-content {
    padding: 6px 6px;
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;   
    border-radius: 12px;
  }

  #appTryon .tab-close-btn {
  position: absolute;
      top: -31px;

    right: 10px;
    background: rgb(0 0 0 / 80%);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #ffffff;
    transition: all 0.2s ease;
}
#appTryon .allContent.tabsOpen.expanded_view .tab-close-btn{
  top: 10px;
}
.allContent .tab-content {
  animation: fadeIn 0.5s ease;
}

#appScreen .tab-content {
  animation: fadeIn 0.5s ease;
}
#appScreen .expanded_view .tab-content{
  height: calc(100vh - 70px);
      overflow: hidden;
      position: relative;
}
.tab-content.expanded_view .photo-grid, .tab-content.expanded_view #garmentScroll{
    width: calc(100vw - 10px);
    flex-wrap: wrap;
}
#appScreen .tab-content.hidden {
  display: none;
}
.white-box {
    position: absolute;
    background: #fff;
    left: 0;
    top: 0;
    width: 119px;
    z-index: 9;
    display: block;
    background: #ffffff;

    height: 119px;
    border-radius: 00;
}
#webappTab.tab-content.active,
#pluginsTab.tab-content.active {
  display: block;
}

#webappTab.tab-content,
#pluginsTab.tab-content {
  display: none;
}
  #appTryon .tab-close-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #333;
  transform: scale(1.1);
}
#appTryon .hidden{
  display: none;
}
div#tryonsContent {
    /* display: flex; */
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    flex: 1;
    overflow: auto;
   
}
  .upload-garment, .upload-photo {
      /* background: #dbe2ea; */
    border: 2px dashed #be1b1f;
    width: 12vh;
    height: 12vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #575757;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px; 
    background: #fff;
  }
  #uploadPhotoBtn, #uploadGarmentBtn{
   flex: 0 0 calc(53.333% - 8px);

  }
#uploadGarmentBtn,  #uploadPhotoBtn{
  padding: 20px;
    left: 20px;
    top: 20px;
  
}
.expanded_view #uploadGarmentBtn,  .expanded_view #uploadPhotoBtn{
  margin-top: 50px;
}
  .tab-content img {
    width: 100%;
    object-fit: contain;

  }

  /* .garment-item , .tryon-item{
    width: 12vh;
    min-height: 12vh;
    object-fit: contain;
 
  } */

  .delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgb(255 255 255 / 90%);
    color: #1f2937;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
  }

.garment-item.garment-selected {
    /* border: 1px solid #1f2937; */
    box-shadow: 0 0 0 1px #10b981
    /* box-shadow: 0 0 0 1px #8b5cf6; */
}

  .selected-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tryon-item {
    position: relative;
    width: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    object-fit: contain;
  }

  .tryon-checkbox {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    z-index: 2;
    cursor: pointer;
  }

  .tryon-selected {
    border: 3px solid #10b981;
    box-shadow: 0 0 0 1px #10b981;
  }

  .selection-actions {
    display: none;
    position: absolute;
    bottom: 130px;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.3s ease;
        z-index: 8;
            gap: 20px
  }

  .selection-actions.show {
    display: flex;
  }

  .selection-count {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
  }

  .selection-buttons {
    display: flex;
    gap: 8px;
  }

  .selection-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .selection-btn.delete {
    background: #ef4444;
  }

  .hidden {
    display: none;
  }

  .hidden-file-input {
    display: none;
  }

  .notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    z-index: 100;
    animation: slideDown 0.3s ease;
    max-width: 380px;
    text-align: center;
  }

  .notification.error {
    background: #ef4444;
  }

  @keyframes slideDown {
    from {
      top: 50px;
      opacity: 0;
    }
    to {
      top: 70px;
      opacity: 1;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Loader animations */
  @keyframes circleFill {
    0% {
      stroke-dashoffset: 327;
    }
    100% {
      stroke-dashoffset: 56;
    }
  }

  @keyframes spin {
    0% {
      transform: rotate(-90deg);
    }
    100% {
      transform: rotate(270deg);
    }
  }

  @keyframes pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.7;
    }
  }

  @keyframes dotFlashing {
    0% {
      background-color: #8b5cf6;
    }
    50%,
    100% {
      background-color: rgba(139, 92, 246, 0.2);
    }
  }

  .loader-message {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* For dark theme compatibility */
.dark .loader-message {
    color: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loader-message {
          font-size: 12px;
        margin-top: 10px;
        color: #fff;
    }
}
  #progressCircle {
    animation: circleFill 2s ease-out forwards,
              spin 3s linear infinite;
    transform-origin: center;
  }

  #progressText {
    font-family: monospace;
  }

  .progress.complete #progressCircle {
    animation: pulse 2s infinite;
  }

  .loader-dots {
    display: none;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .progress.loading .loader-dots {
    display: block;
  }

  .dot-flashing {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #8b5cf6;
    color: #8b5cf6;
    animation: dotFlashing 1s infinite linear alternate;
    animation-delay: .5s;
  }

  .dot-flashing::before,
  .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
  }

  .dot-flashing::before {
    left: -15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #8b5cf6;
    color: #8b5cf6;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 0s;
  }

  .dot-flashing::after {
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #8b5cf6;
    color: #8b5cf6;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 1s;
  }

  /* Share modal */
  .share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
  }

  .share-modal.active {
    display: flex;
  }

  .share-content {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  }

  .share-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
  }

  .share-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    font-weight: 400;
  }

  .share-options {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
  }

  .share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    border-radius: 16px;
    transition: all 0.2s ease;
    flex: 0 0 calc(33.333% - 16px);
    min-width: 100px;
  }

  .share-option:hover {
    background: #f9fafb;
    transform: translateY(-2px);
  }

  .share-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: transform 0.2s ease;
  }

  .share-option:hover .share-icon {
    transform: scale(1.1);
  }

  .share-icon.whatsapp {
    background: #25D366;
  }

  .share-icon.instagram {
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d92e7f 50%, #9b36b7 75%, #515bd4 100%);
  }

  .share-icon.link {
    background: #8b5cf6;
  }

  .share-option span {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
  }

  .close-share {
    margin-top: 24px;
    padding: 12px 32px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
  }

  .close-share:hover {
    background: #e5e7eb;
  }

  /* Profile info in menu */
  .menu-profile {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .menu-profile-name {
    font-weight: 500;
    color: #1f2937;
  }

  .menu-profile-phone {
    font-size: 12px;
    color: #6b7280;
  }
  /* notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
font-size: 13px;
    padding: 12px 18px;
    background: #10b981;
    color: #fff;
    border-radius: 6px;

    transform: translateY(-20px);
    opacity: 0;

    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.notification.error {
    background: #dc3545;
}

/* Show state */
.notification.show {
    transform: translateY(0);
    opacity: 1;
}
  #authScreen{
    /* background-image: url('../img/banner.png');  */
   background-size: 110%;
    background-position: -18px 17px;
    background-repeat: no-repeat;
  }
.powered-by {
margin-top: 16px;
    text-align: center;
    font-size: 12px;
  color: #575757d4;;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.powered-by span {
font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: center;
}
.logo_inner img {
    width: 100%;
}
.logo_inner {
    width: 106px;
    height: auto;
    display: flex;
    gap: 9px;
    align-items: center;
}


/* Hide scrollbar (mobile clean look) */
.garments-scroll::-webkit-scrollbar {
  display: none;
}
.garment-item {
  border: 1px solid #c1c1c1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: #fff;

}
.photo-item.garment-item.active {
    box-shadow: 0 0 0 1px #10b981;
}
#garmentsContent .photoitem.garment-item {
    margin-top: 6px;
}
.garment-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logout-btn.flat {
    background: none;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}
  @keyframes slideDown {
    from {
      top: 50px;
      opacity: 0;
    }
    to {
      top: 70px;
      opacity: 1;
    }
  }

  @keyframes slideUp {
    from {
      top: 70px;
      opacity: 1;
    }
    to {
      top: 50px;
      opacity: 0;
    }
  }
  .logo img {
    padding: 10px;
}
span#creditsCount {
    color: #cb0909;
}

/* Profile Container */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.edit-avatar-btn {
  position: absolute;
  top: 70px;
  left: 70px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.edit-avatar-btn:hover {
  background: #2563eb;
}

.profile-info h2 {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 28px;
}

.profile-email-phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-email-phone p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
}

.profile-email-phone i {
  width: 20px;
  color: #9ca3af;
}

.member-since {
  color: #9ca3af;
  font-size: 14px;
}

/* Profile Stats */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #4f46e5;
}

.stat-content h3 {
  margin: 0 0 4px 0;
  font-size: 24px;
  color: #1f2937;
}

.stat-content p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* Profile Actions */
.profile-actions h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-btn i {
  color: #6b7280;
  font-size: 18px;
}

.action-btn.delete {
  color: #ef4444;
  border-color: #fecaca;
}

.action-btn.delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  color: #1f2937;
}
.modal-body {
    display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}
.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  background: #f3f4f6;
  color: #374151;
}

#editProfileForm,
#changePasswordForm {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.phone-input-group {
  display: flex;
}

.phone-input-group .country-code {
  padding: 12px 16px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #374151;
}

.phone-input-group input {
  border-radius: 0 8px 8px 0;
  flex: 1;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
}

.toggle-password:hover {
  color: #374151;
}

.password-requirements {
  margin-top: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 14px;
  color: #64748b;
}

.password-requirements ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.password-requirements li {
  margin-bottom: 4px;
}

.password-requirements li.valid {
  color: #10b981;
}

.password-requirements li.invalid {
  color: #ef4444;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 24px;
  border-top: 1px solid #e5e7eb;
}

.btn {
  /* padding: 12px 24px; */
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

#editProfileModal .btn.primary {
  background: #3d4653;
  color: white;
}

#editProfileModal .btn.primary:hover {
  background: #3d4653;
}

#editProfileModal .btn.secondary, #changePasswordForm .btn.secondary{
  background: #f3f4f6;
  color: #374151;
}

#editProfileModal .btn.secondary:hover {
  background: #e5e7eb;
}

 #editProfileModal .btn.danger {
  background: #ef4444;
  color: white;
}

#editProfileModal .btn.danger:hover {
  background: #dc2626;
}

#editProfileModal .btn.danger:disabled {
  background: #fca5a5;
  cursor: not-allowed;
}

/* Avatar Modal */
.avatar-options {
  padding: 24px;
}

.avatar-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.avatar-action-btn {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.avatar-action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.avatar-colors {
  margin-bottom: 24px;
}

.avatar-colors p {
  margin: 0 0 12px 0;
  color: #6b7280;
}

.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  outline: 3px solid #4f46e5;
  outline-offset: 2px;
}

/* Delete Account Modal */
.delete-modal .warning-message {
  padding: 24px;
}

.warning-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ef4444;
  margin: 0 auto 20px;
}

.delete-modal h4 {
  color: #dc2626;
  text-align: center;
  margin-bottom: 16px;
}

.delete-modal ul {
  margin: 16px 0;
  padding-left: 20px;
  color: #6b7280;
}

.confirmation-input {
  margin-top: 24px;
}

.confirmation-input label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
}

.confirmation-input input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ef4444;
  border-radius: 8px;
  font-size: 16px;
  text-transform: uppercase;
}

.confirmation-input input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Error Messages */
.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  animation: slideInRight 0.3s ease;
  z-index: 1000;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .landing-header{
    display: none;
  }
  .edit-avatar-btn {
    position: relative;
    top: auto;
    left: auto;
    margin-top: -20px;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .btn {
    width: 100%;
  }
}
/* ends */















@media (min-width: 480px) {
    .auth-screen {
       padding-bottom: 85px;
    }

}
@media (min-width: 320px) {
    .auth-screen {
    padding-bottom: 12px
    }
    .guide-icon img {
                width: 81%;
        height: auto;
    }

}
@media (max-width:411px) {
  .guide-icon img {
    width: 60%;
    height: auto;
}
    .auth-screen {
        padding: 24px;
        padding-bottom: 12px;
    }
}
@media (max-width: 413px) {
  /* Styles for very small phones */
  .otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}
  .auth-screen {
    padding: 24px;
        padding-bottom: 12px
  }
  #authScreen {

        padding: 0;
        margin: 0;
}

.auth-switch {
    margin-top: 4px;
}

  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 768px;
    margin: auto;
    background: #fff;   
    display: flex;
    flex-direction: column;
}
/* .upload-garment{
  height: 80px;
}
.garment-item{
    height: 80px;
}
.tab-content img{
    height: 80px;
} */
.action-bar{
        padding: 14px 0px;
            gap: 10px;
                    display: flex;
}
.footer-gap {
    height: 2px;
    background: #f3f4f6;
    margin: 2px;
    border-radius: 6px;
        display: none;

}

}
    .auth-screen {
        padding: 24px;
        padding-bottom: 85px;
    }
 @media (min-width: 480px) {
    .auth-screen {
      padding-bottom: 85px;
    }

}   
@media (min-width: 767px) {
 
        
  .tabs {
    display: flex;
    font-size: 14px;
    position: relative;
    gap: 8px;
    padding: 5px 10px;
        justify-content: flex-start;
    width: fit-content;
}
      
  #authScreen{
        /* display: flex; */
    align-items: center;
    
        flex-direction: column;
  }
      .guide-icon img {
      width: 85%;
      
    }
      .auth-screen {
        padding: 24px;
        padding-bottom: 85px;
    }
        #authScreen {
     /* background-image: url(../img/banner.png); */
        background-size: 30%;
        background-position: 5% 100%;
        background-repeat: no-repeat;
        background-color: #ffffff;
    }
  /* Styles for most mobile phones */
}
img.powered {
    background: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
}
@media(min-width:1023px){
  .landing-header{
    display: block;
  }
  .garment-item {
    flex: 0 0 125px;
    height: 125px;
  }
  .upload-garment{
height: 125px;
width: 125px;
  }
.tabs button{
      min-width: 170px;
}
.auth-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    background: #f7f7f7;
    padding: 24px;
    border-radius: 34px;
    position: absolute;
     right: 15%;
             top: 50%;
        transform: translate(-18%, -50%);
}
.auth-container .logo{
  display: none;
}
 

 
 

 .subscription-container{
      box-shadow: none;
    }
        .view-content.panel {
        height: calc(100vh - 50px);
        /* position: absolute; */
        width: 100%;
        overflow: hidden;
        width: calc(100%);
        color: #000;
        z-index: 999999999999999;      
        margin-top: 60px;
        padding: 25px;
        overflow: auto;        
        background: #f8fafc;
        position: static;
        z-index: 9;
    }
}

/* sidebar css */
/* ==================== LEFT SIDEBAR ==================== */

.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-header .logo_inner img {
  max-height: 40px;
  filter: brightness(0) invert(1);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.sidebar-btn {
      display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.95rem;
     font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
  /* display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 25px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  gap: 15px; */
}

.sidebar-btn:hover {
    background: #f8fafc;
    color: #1e293b;
}

.sidebar-btn.active {
  background: rgba(189, 67, 70, 0.2);
    color: #bd4346;
  border-left: 4px solid #bd4346;
}

.sidebar-btn i {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.sidebar-divider {
margin: 0px 25px;
    border: none;
    border-top: 1px solid rgb(0 0 0 / 10%);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    display: none;
}
.sidebar-footer .user-email {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-actions {

  border-top: 1px solid #e5e7eb;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;

}

#sidebarAvatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
background: #f8fafc;
    color: #696969;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 16px;
}

.user-credits {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.user-credits i {
  color: #fbbf24;
}

.sidebar-action-btn {
width: 100%;
  padding: 10px 15px;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.sidebar-action-btn:hover {
  background: #e5e7eb;
}

/* Adjust main content when sidebar is visible */
.app-screen.with-sidebar #appMain {
  margin-left: 280px;
}
  .header-mobile{
    min-height: 70px;
    display: none;
  }
/* ==================== RESPONSIVE DESIGN ==================== */

/* Show sidebar on desktop (width >= 1024px) */
@media (min-width: 1024px) {
  .left-sidebar {
    display: none;
  }
  
  .app-screen #appMain {
    /* margin-left: 280px; */
    transition: margin-left 0.3s;
  }
  
  /* Hide mobile menu on desktop when sidebar is visible */
  /* .app-screen .menu {
    display: none !important;
  } */
  
  /* Adjust header spacing for desktop */
  .app-screen #appHeader {
    background: #fff;   
        width: calc(100%);
        border-bottom: 1px solid #e2e8f0;
    
  }
  
  /* Adjust footer spacing for desktop */
  .app-screen #appFooter {
        /* margin-left: 280px; */
        width: calc(100%);
  }
}

/* On tablets (768px - 1023px), show sidebar collapsed */
@media (min-width: 768px) and (max-width: 1023px) {
  .left-sidebar {
    width: 80px;
    display: none;
  }
  
  .app-screen #appHeader {
    width: calc(100%);
  }
  
  .app-screen #appFooter {
    width: calc(100% );
  }
  
  /* Hide text in collapsed sidebar */
  .left-sidebar .sidebar-btn span,
  .left-sidebar .user-details,
  .left-sidebar .sidebar-action-btn span,
  .left-sidebar .sidebar-header .logo_inner {
    display: none;
  }
  
  .sidebar-btn {
    justify-content: center;
    padding: 20px 10px;
  }
  
  .sidebar-btn i {
    font-size: 22px;
    width: auto;
  }
  
  .sidebar-footer {
    padding: 15px 10px;
  }
  
  #sidebarAvatar {
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }
  
.sidebar-action-btn i {
  font-size: 14px;
}

  .sidebar-action-btn i {
    margin: 0;
  }
}

/* On mobile (< 768px), hide sidebar completely */
@media (max-width: 767px) {
   .header-mobile{
    min-height: 70px;
    display: block;
  }
    .pricing-grid{
            flex-direction: column;
    }
        .subscription-container {   
            max-width: 500px;
            width: 100%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
  .left-sidebar {
    display: none;
  }
  
  .app-screen #appMain {
    margin-left: 0;
            background: #f8fafc;
                    position: relative;
  }
  
  .app-screen #appHeader {
    margin-left: 0;
    width: 100%;
  }
  
  .app-screen #appFooter {
    margin-left: 0;
    width: 100%;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1)
  }
}

/* ==================== SIDEBAR TOGGLE BUTTON ==================== */

/* Add sidebar toggle button for tablets */
.sidebar-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #bd4346;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(189, 67, 70, 0.3);
}

@media (max-width: 1023px) {
  .sidebar-toggle {
    display: flex;
  }

}

/* Sidebar expanded state for mobile/tablet */
.left-sidebar.expanded {
  display: flex;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.sidebar-overlay.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* landing page */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  /* display: none; */
}

.landing-header-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo img {
  height: 40px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-nav {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.nav-link:hover {
  color: #bd4346;
}

.landing-auth {
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-btn {
  background: linear-gradient(135deg, #bd4346 0%, #e11d48 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(189, 67, 70, 0.3);
}

.landing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 67, 70, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #4b5563;
  font-size: 24px;
  cursor: pointer;
}

/* ==================== MOBILE MENU ==================== */

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
  flex-direction: column;
 gap: 8px;
}

.mobile-menu.active {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 18px;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: #bd4346;
}

.mobile-landing-btn {
  background: linear-gradient(135deg, #bd4346 0%, #e11d48 100%);
  color: white;
  border: none;
    padding: 12px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

/* ==================== AUTH CONTAINER ADJUSTMENTS ==================== */


/* ==================== RESPONSIVE DESIGN ==================== */

/* Show landing header on desktop (>= 768px) */
@media (min-width: 768px) {

  .header-mobile{
    min-height: 70px;
  }
  
  /* Adjust auth container for header */  
  /* Make auth forms look better on desktop */
  .auth-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
}

/* On mobile (< 768px), hide landing header */
@media (max-width: 767px) {

  /* Show mobile menu button */
 .mobile-menu-btn {
    position: fixed;
    right: 0;
    top: 18px;
    right: 18px;
            display: flex;
}
}

/* Large desktop adjustments */
@media (min-width: 1200px) {
  .landing-header-content {
    padding: 0 50px;
  }
 
}

/* ==================== LANDING PAGE HERO SECTION (Optional) ==================== */
/* If you want to add a hero section like the FitRoom example */

.landing-hero {
  display: none; /* Hidden by default */
}

@media (min-width: 1024px) {
  .footer-gap{
    height: 0px;
  }
  .landing-hero {
    display: block;
    position: absolute;
    left: 50px;
    top: 150px;
    width: 400px;
  }
  
  .hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);

    -webkit-text-fill-color: transparent;
  }
  
  .hero-subtitle {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
  }
  
  .hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .feature-icon {
    color: #bd4346;
    font-size: 20px;
  }
  
  .feature-text {
    color: #4b5563;
    font-weight: 500;
  }
  
  .hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .cta-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #bd4346;
    transition: all 0.3s;
  }
  
  .cta-btn.primary {
    background: #bd4346;
    color: white;
  }
  
  .cta-btn.secondary {
    background: white;
    color: #bd4346;
  }
  
  .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 67, 70, 0.3);
  }
  .pricing-grid {
    display: flex;
    margin-bottom: 30px;
    flex-direction: row;
  
}
.subscription-container{
    max-width: 1023px;
}
.plan-card {

    width: calc(100% / 3.2);
    /* width: 100%; */
}
/* For logout specifically */
#sidebarLogout {
  background: #fee2e2;
  color: #dc2626;
}

#sidebarLogout:hover {
  background: #fecaca;
}
}
   .subscription-container {
            background: white;
            border-radius: 20px;
            padding: 30px;
            /* max-width: 500px; */
            width: 100%;
   
        }
        
        .back-btn {
            background: none;
            border: none;
            color: #666;
            font-size: 16px;
            cursor: pointer;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        h1 {
  color: #ffffff;
            margin-bottom: 30px;
            text-align: center;
        }
        
        .pricing-grid {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    /* flex-direction: column; */
        position: relative;
        }
        
        .plan-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    width: calc(100% / 3.2);
    width: 100%;
        }
        
        .plan-card:hover {
            border-color: #bd4346;
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(189, 67, 70, 0.1);
        }
        
        .plan-card.selected {
            border-color: #bd4346;
            background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
        }
        
        .plan-credits {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }
        
        .plan-price {
            font-size: 20px;
            color: #bd4346;
            font-weight: bold;
            margin-bottom: 10px;
        }
        
        .plan-price span {
            font-size: 14px;
            color: #666;
            font-weight: normal;
        }
        
        .plan-popular {
            background: #bd4346;
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .selected-indicator {
        
            color: #fff;
            font-weight: 600;
        }
        
        .payment-methods {
            margin: 25px 0;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 15px;
        }
        
        .payment-methods h3 {
            margin-bottom: 15px;
            color: #333;
        }
        
        .payment-options {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .payment-option {
            flex: 1;
            min-width: 120px;
            border: 2px solid #ddd;
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .payment-option.selected {
            border-color: #bd4346;
            background: white;
        }
        
        .payment-icon {
            font-size: 24px;
            margin-bottom: 10px;
            color: #333;
        }
        
        .payment-option.selected .payment-icon {
            color: #bd4346;
        }
        
        .btn-pay {
            width: 100%;
            background: #bd4346;
            color: white;
            border: none;
            padding: 18px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }
        
        .btn-pay:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(189, 67, 70, 0.3);
        }
        
        .btn-pay:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }
        
        .current-balance {
            text-align: center;
            margin: 20px 0;
            padding: 15px;
            background: #f0f9ff;
            border-radius: 10px;
            color: #333;
        }
        
        .current-balance strong {
            color: #bd4346;
            font-size: 18px;
        }

      /* sidebar css ends */