:root {
  --main-font: Lato, sans-serif;
  --greyBg:#272727;
  --tryonPrimary:#c73b3f;
  --whiteBg:#fff;
  --fullRoundRadius:50px;
  --semiRound:8px;
  --disabled:#b3b3b3;  
   --lightGrey: #f5f5f5;
   --blackText:#000;
   --fontsizeA:18px;
   --fontsizeGeneral:14px;
   --fontsizeC:16px;
   --fontsizeD:22px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
}

.app#appTryon{
    min-height: 100vh;
    position: relative;
    font-family: var(--main-font);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    width: 100%;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* NAVBAR */
#appTryon .logo{
  font-size:20px;
  font-weight:600;
  letter-spacing:2px;
}

#appTryon .nav-links{
  align-items:center;
  gap: 20px;
  display: flex;
}

#appTryon .nav-links a{
  text-decoration:none;
  color:#000;
  font-size:var(--fontsizeGeneral);
  transition:0.3s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
}

#appTryon .nav-links a:hover{
  color:#ccc;
}

#appTryon .btn {
    border: none;
    padding: 12px;
    border-radius: 8px; 
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

#appTryon #switchToLoginBtn {
    white-space: nowrap;
    background: var(--greyBg);
    padding: 12px 18px;
    border-radius: 8px;
    width: 100%;
    font-size: var(--fontsizeC);
}

#appTryon #switchToSignupBtn { 
 font-size: var(--fontsizeC);
}
#appTryon .auth-switch #switchToLoginBtn { 
background: none;
width: auto;

}


#appTryon .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#appTryon .btn:active {
    transform: translateY(0);
}

#appTryon .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#appTryon #sendOtpBtn{
    padding: 13px 18px;
    border-radius: 8px;
}

#appTryon .btn-outline{
    background:transparent;
    border:1px solid #fff;
    color:#fff;
}

#appTryon .btn-outline:hover{
    background:var(--whiteBg);
    color:#000;
}

.btn-filled{
    background:var(--whiteBg);
    color:#000;
}

#appTryon .btn-filled:hover{
    color: #000;
    background:var(--whiteBg);
}

/* HERO VIDEO */
#appTryon .hero{
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero video{
    position: absolute;
    width: 100%;
    height: 100vh;
    transform: translate(0%, 0%);
    object-fit: cover;
}

.hero-content {
    max-width: 700px;
    margin-top: 420px;
    height: 20%;
    min-width: 80%;
}

.hero h1{
    font-size:48px;
    margin-bottom:20px;
}

#appTryon .hero p{
    font-size:18px;
    margin-bottom:30px;
    color:#ddd;
}

#appTryon .hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top: 20px;
}

/* MODAL */
#appTryon .modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    justify-content:center;
    align-items:center;
    z-index:2000;
}

#appTryon .modal.active{
    display: block;
}

#appTryon .modal-content h2{
    margin-bottom:20px;
}

#appTryon .modal-content input{
    width:100%;
    padding:10px;  
    border-radius:5px;
}

#appTryon .close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:30px;
    cursor:pointer;
}

/* Plan Dropdown */
div#planDropdownMenu {
    position: absolute;
    top: calc(100% - 430px);
    left: 0;
    width: 100%;
    background:var(--greyBg);
    border-radius: 28px;
    padding: 1rem 0.5rem;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid #2f3545;
    z-index: 100;
    max-height: 360px;
    overflow-y: auto;
}

.plan-selector-container {
    background: var(--greyBg);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.plan-dropdown {
    position: relative;
    width: 400px;
    max-width: 100%;
}



.plan-option {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.plan-option:last-child {
    border-bottom: none;
}

.plan-option:hover {
    background: #f8f9ff;
}

.plan-option.selected {
    background: #e8f0fe;
    border-left: 4px solid #4f46e5;
}

.plan-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.plan-price {
    font-size: 20px;
    font-weight: 800;
    color: #4f46e5;
    margin: 0;
}

.plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.popular-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.plan-features i {
    color: #10b981;
    font-size: 12px;
}

/* Plan Details Panel */
.plan-details-panel {
    margin-top: 30px;
    padding: 30px;
    background: rgb(255 255 255);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: none;
    width: 90%;
}

.plan-details-panel.active {
    display: block;
    animation: slideUp 0.3s ease;
    color: #000000;
}

.plan-details-panel h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.plan-details-panel .price {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #323030;
}

.plan-details-panel .price span {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.plan-details-list {
    list-style: none;
    margin-bottom: 25px;
}

.plan-details-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

.plan-details-list i {
    color: #10b981;
}

.plan-action-btn {
    width: 100%;
    padding: 14px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.plan-action-btn:hover {
    background: #4338ca;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(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;
    background: #ffffffb3;
    --header-height: 64px;
        min-height: 60px;
}

#appTryon .auth-header {
    position: relative;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#appTryon h5.appHead {
    color: #000;
    z-index: 999;
    padding: 10px 20px;
    background: #f5f5f5;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
        border-bottom: 1px solid #e5e7eb;
}

#appTryon .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;
}

#appTryon .content-container {
    overflow-x: auto;
    overflow-y: hidden;
}

.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;
    padding: 0;
}

#authScreen.active {
    display: block;
}

#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 #tryonsInnerContent {
    display: inline-flex;
    align-items: anchor-center;
    gap: 15px;
    padding: 13px;
    padding-left: 0;   
    white-space: nowrap;
}

#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-left: 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    align-content: flex-start;
    margin-left:0!important ;
}

#appTryon .allContent.expanded_view #tryonsInnerContent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    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;
}

#appTryon #renderedContent {
    position: relative;
}

#appTryon #toggleExpandBtn {
    position: absolute;
    top: 5px;
    right: 57px;

    padding: 0;

    border-radius: 50%;
    font-size: 13px;
    align-items: center;
    width: 30px;
    display: flex;
    height: 30px;
    justify-content: center;
    z-index: 9;
    transition: all 0.2s ease;
     box-shadow: 0 4px 2px rgba(79, 70, 229, 0.3);
     color: #000000;
     background: #ffff;
}

#appTryon .allContent #toggleExpandBtn {
    display: none;
    transition: all 0.2s ease;
}

#appTryon .allContent.tabsOpen #toggleExpandBtn {
    display: flex;
}

#appTryon .allContent.tabsOpen.expanded_view #toggleExpandBtn {
    top:5px;
}

#garmentsContent.tab-content {
    padding-top:0;
}

#appTryon .btn-primary {
    background: #3b82f6;
    color: white;
}

#appTryon .btn-primary:hover {
    background: #2563eb;
}

#appTryon .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

#appTryon .btn-secondary:hover {
    background: #e2e8f0;
}

#photosContent, #garmentsContent {
    overflow-x: hidden;
    display: block;
}

/* garment view */
.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;
    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 {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.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;
}

.close-view-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hidden{
    display: none;
}

#studioView{
    height: 100%;
}

/* SCREENS */
.screen {
    display: none;
    width: 100%;
    overflow-y: auto;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* AUTH SCREENS */
.auth-container {   
    padding: 24px;
    height: calc(100vh);
    width: 100%;
    z-index: 999999;
    border-radius: 0;
    top: 0;
    position: absolute;
    background: #fff;
    display: none;
}

.logo img {
    width: 100%;
}

.logo {
    width: 155px;
}

.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;
}

#appTryon .form-input {
    display: flex;
    align-items: center;
    background:rgb(95 88 88 / 0%);
    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;
}

.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%;
    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;
    margin: auto;
    z-index: 50;
}

.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;
}

.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;
    display: none;
}

.action-bar {
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.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: 180px;
    left: 50%;
    width: 30%;
}

.tryon-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 9;
}

.allContent {
    flex: 1;
    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; */
    border-radius: 10px;
    padding: 8px;
        width: calc(100vw / 3);
    background: #ffffff; 
}

.tabs button .fas {
    font-size: 12px;
}

.tabs .active {
    background: #ededed;
    color: #bc1d20;
}

#appTryon .tab-content {
    padding: 0;  
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

#appTryon .tab-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: #323232;
    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;
    position: absolute;
    top: 5px;
    right: 10px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #000000;
    transition: all 0.2s ease;
    box-shadow: 0 4px 2px rgba(79, 70, 229, 0.3);
}

#appTryon .allContent.tabsOpen.expanded_view .tab-close-btn {
    top: 5px;
}

.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: 50px;
    width: 119px;
    z-index: 9;
    display: block;
    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);
}

div#tryonsContent {
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    flex: 1;
    overflow: auto;
}

.upload-garment, .upload-photo {
    z-index: 99;
    position: absolute;
    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: 53px;
}

.tab-content img {
    width: 100%;
    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 {
    box-shadow: 0 0 0 1px #10b981;
}

.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: 14px;
    height: 14px;
    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: 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-file-input {
    display: none;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* For mobile devices */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        padding: 10px 20px;
        font-size: 13px;
        width: 80%;
    }
}

@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;
}

#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;
}

#authScreen {
    background-size: 110%;
    background-position: -18px 17px;
    background-repeat: no-repeat;
}

.powered-by {
    margin-top: 36px;
    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;
}

.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;
    height: auto;
    width: 100%;
}

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;
    font-size: 15px;
    color: #fff;
}

.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 */
#editProfileModal .modal, 
#changePasswordModal .modal, 
#avatarModal .modal, 
#deleteAccountModal .modal, 
#garmentViewModal .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;
}

#appTryon .modal.active {
    display: flex;
}

#appTryon .modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 100vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#appTryon .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}
#appTryon .photo-item small {
    display: flex;
    /* width: 100%; */
    /* justify-content: center; */
    align-items: center;
    /* display: flex; */
    white-space: nowrap;
}
#appTryon .modal-header h3 {
    margin: 0;
    color: #ffffff;
}
#paymentModal .modal-header h3{
  color: var(--blackText);
}
#appTryon .modal-body {
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

#appTryon .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, .delete-modal {
    padding: 24px;
}

#appTryon .form-group {
    margin-bottom: 20px;
}

#appTryon .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
}

#appTryon .form-group input,
#appTryon .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

#appTryon .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);
}

#appTryon .phone-input-group {
    display: flex;
}

#appTryon .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;
}

#appTryon .phone-input-group input {
    border-radius: 0 8px 8px 0;
    flex: 1;
}

.password-input {
    position: relative;
}

#appTryon .password-input input {
    padding-right: 50px;
}

#appTryon .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

#appTryon .toggle-password:hover {
    color: #374151;
}

#appTryon .password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 14px;
    color: #64748b;
}

#appTryon .password-requirements ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

#appTryon .password-requirements li {
    margin-bottom: 4px;
}

#appTryon .password-requirements li.valid {
    color: #10b981;
}

#appTryon .password-requirements li.invalid {
    color: #ef4444;
}

#appTryon .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

#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;
    }
}

img.powered {
    background: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
}

/* sidebar css */
.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;
}

.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;
}

/* Sidebar toggle button */
.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);
}

/* 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;
}

.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: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%;
}

/* Landing Page Hero Section */
.landing-hero {
    display: none;
}

/* Subscription Container */
.subscription-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    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;
    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: 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;
}

/* ==================== MOBILE FIRST (DEFAULT) - WORKS FOR ALL MOBILE DEVICES ==================== */
@media (max-width: 767px) {
    /* Mobile-specific styles - all current mobile styles remain here */
    .tabs button .fas {
    font-size: 12px;
}
    #appTryon .logo {
        width: 116px;
    }
    
    .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);
    }
    
    .landing-header {
        display: none;
    }
    
    .mobile-menu-btn {
        position: fixed;
        right: 0;
        top: 18px;
        right: 18px;
        display: flex;
    }
    
    .footer-gap {
        display: none;
    }
    
    .mobile-menu-btn {
        position: fixed;
        right: 0;
        top: 18px;
        right: 18px;
        display: flex;
    }
    
    #appTryon .navbar {
        padding: 15px 20px;
    }
    
    #appTryon .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: 100%;
        padding: 32px 20px;
        display: none;
    }
    
    #appTryon .nav-links.active {
        display: flex;
        height: 100vh;
    }
    
    #appTryon .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        font-weight: 600;
        border-radius: 63px;
        color: #000;
    }
    
    #appTryon .hero h1 {
        font-size: 32px;
    }
    
    #appTryon .hero p {
        font-size: 14px;
    }
}

/* ==================== TABLET PORTRAIT (768px - 1023px) ==================== */
@media (min-width: 1024px) and (orientation: portrait){
 #appTryon #heroGetStartedBtn {
    border-radius: 50px;
    padding: 22px 34px !important;
    font-size: 22px;

}
    #appTryon .allContent.expanded_view .photo-grid, #appTryon .allContent.expanded_view .thumb-grid {
            grid-template-columns: repeat(5, 1fr);
    }
.menu-toggle{
    display: none;
}
span#creditsCount{
    font-size: var(--fontsizeC);
}
.logo_inner {
    width: 175px;
}
.tabs button .fas {
      font-size: var(--fontsizeC);
}
.tabs button{
          font-size: var(--fontsizeC);
}
#appTryon .photo-grid .photo-item:nth-child(1), #appTryon .thumb-grid :nth-child(1) {
    grid-column: 2 / 3;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet portrait specific styles */
    #appTryon #heroGetStartedBtn {
    border-radius: 50px;
    padding: 22px 34px !important;
    font-size: 22px;
}
    #appTryon .allContent.expanded_view .photo-grid, #appTryon .allContent.expanded_view .thumb-grid {
            grid-template-columns: repeat(5, 1fr);
    }
.menu-toggle{
    display: none;
}
span#creditsCount{
    font-size: var(--fontsizeC);
}
.logo_inner {
    width: 175px;
}
.tabs button .fas {
      font-size: var(--fontsizeC);
}
.tabs button{
          font-size: var(--fontsizeC);
}
#appTryon .photo-grid .photo-item:nth-child(1), #appTryon .thumb-grid :nth-child(1) {
    grid-column: 2 / 3;
}
    .left-sidebar {
        width: 80px;
        display: none;
    }
    #appTryon h5.appHead {
  
    height: 50px;
    font-size: var(--fontsizeC);    
}
#uploadGarmentBtn, #uploadPhotoBtn {
    left: 20px;
    top: 63px;
}
    .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;
        margin: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .header-mobile {
        min-height: 70px;
    }
    
    .tabs {
        display: flex;
        font-size: 14px;
        position: relative;
        gap: 8px;
        padding: 5px 10px;
        justify-content: flex-start;
        width: fit-content;
    }
    
    #authScreen {
        align-items: center;
        flex-direction: column;
    }
    
    .guide-icon img {
        width: 85%;
    }
    
    .auth-screen {
        padding: 24px;
        padding-bottom: 85px;
    }
    
    .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;
    }
    
    .plan-dropdown {
        width: 100%;
    }
    
    .plan-option-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        padding: 10px 0px;
    }
    
    .plan-details-panel {
        padding: 20px;
    }
}

/* ==================== DESKTOP (1024px AND ABOVE) ==================== */
@media (min-width: 1024px) {
    /* Desktop-specific styles - add your desktop CSS here */
    #appTryon .navbar, #appTryon #appHeader{
      min-height: 50px;
    }
    #appTryon .allContent.expanded_view .photo-grid, #appTryon .allContent.expanded_view .thumb-grid {
            grid-template-columns: repeat(5, 1fr);
    }
    #appTryon #switchToLoginBtn {
    background: #ffffff;
    white-space: nowrap;
    color: #000;
        font-size: var(--fontsizeGeneral);
}
    .auth-container {
        width: 400px;
        height: 100%;  
        background: #ffffff;
        padding: 24px;
        border-radius: 0;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
 }
#appTryon #switchToSignupBtn {
    font-size: var(--fontsizeGeneral);
    white-space: nowrap;
}
     #appTryon .menu-toggle{
      display: none;
    }
     #appTryon .logo img {
    padding: 10px;
    height: auto;
    width: 105px;
}
    .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: 400px;
        height: 100%;
        text-align: center;
        background: #f7f7f7;
        padding: 24px;
        border-radius: 0;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
    }
    
    .auth-container .logo {
        display: none;
    }
    
    .subscription-container {
        box-shadow: none;
    }
    
    .view-content.panel {
        height: calc(100vh - 50px);
        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;
    }
    
    .left-sidebar {
        display: none;
    }
    
    .app-screen #appMain {
        transition: margin-left 0.3s;
    }
    
    .app-screen #appHeader {
        background: #fff;
        width: calc(100%);
        border-bottom: 1px solid #e2e8f0;
    }
    
    .app-screen #appFooter {
        width: calc(100%);
    }
    
    .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;
    }
    
    .landing-header-content {
        padding: 0 50px;
    }
}

/* ==================== RESPONSIVE FOR VERY SMALL DEVICES ==================== */
@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;
        align-items: center;
        display: flex;
                justify-content: center;
    }
    
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 768px;
        margin: auto;
        background: #fff;
        display: flex;
        flex-direction: column;
    }
    
    .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;
    }
}

/* ==================== ADDITIONAL RESPONSIVE STYLES ==================== */
@media (min-width: 480px) {
    .auth-screen {
        padding-bottom: 85px;
    }
}

@media (max-width: 411px) {
    .guide-icon img {
        width: 60%;
        height: auto;
    }
    
    .auth-screen {
        padding: 24px;
        padding-bottom: 12px;
    }
}

@media (min-width: 320px) {
    .auth-screen {
        padding-bottom: 12px;
    }
    
    .guide-icon img {
        width: 81%;
        height: auto;
    }
}

/* ==================== RESPONSIVE FOR LOADER MESSAGE ==================== */
@media (max-width: 768px) {
    .loader-message {
        font-size: 12px;
        margin-top: 10px;
        color: #fff;
    }
#heroGetStartedBtn {
    padding: 20px 30px !important;
    border-radius: 50px !important;
    font-size: 16px;
}
}

/* ==================== RESPONSIVE FOR PROFILE SECTION ==================== */
@media (max-width: 768px) {
  
#appTryon #heroGetStartedBtn {
    background: var(--whiteBg);
    color:var(--blackText);
    border-radius: 50px;
        padding: 16px 24px;
        font-size: var(--fontsizeC);
        font-weight: 600;

}

    .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;
    }
}


/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Product Type Modal Styles */
.product-type-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.product-type-modal.active {
    display: flex;
    position: absolute;
    top: 0;
}

.product-type-content {
    background: white;
    /* border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    position: absolute;
    top: 0;
    padding: 24px; */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 20px; */
    border-bottom: 1px solid #e5e7eb;
    background: #f5f5f5;;
}

.product-type-header h5 {
    color: #000;
    z-index: 999;
    padding: 10px 20px;
    background: #f5f5f5;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.close-product-type-btn {
    border: none;
    border-radius: 50px;
    background: #fff;
    border: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #000000;
    box-shadow: 0 4px 2px rgba(79, 70, 229, 0.3);
    margin-right: 12px;
}

.close-product-type-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.gender-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 40px;
}

.gender-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s;
    font-size: 1rem;
}

.gender-tab.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.product-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-height: 100px;
    overflow-y: auto;
    padding: 5px;
}

.product-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
      padding: 12px 10px;
    background: #f9fafb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    gap: 6px;
}

.product-type-card:hover {
    background: #f3f4f6;
    transform: translateY(-3px);
}

.product-type-card.selected {
    border-color: #4f46e5;
    background: #eef2ff;
}

.product-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    /* background: linear-gradient(135deg, #3b82f6, #1d4ed8); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    
}

.product-type-card.selected .product-icon {
    background: #4f46e5;
    color: white;
}

.product-type-card span {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    text-align: center;
}

.product-type-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

#confirmProductType {
    padding: 12px 40px;
    border-radius: 40px;
    font-weight: 600;
    background: #4f46e5;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

#confirmProductType:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#confirmProductType:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar styling */

.product-types-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-types-grid::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 10px;
}

.product-types-grid::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Responsive design */
@media (max-width: 768px) {
    .product-type-content {
        position: absolute;
        bottom: 0;
        width: 100%;
    }
    .product-model-middle{
        padding: 20px;
    }
    .product-types-grid {
        /* grid-template-columns: repeat(3, 1fr); */
        gap: 10px;
    }
    
    .product-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .product-type-card span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-types-grid {
        /* grid-template-columns: repeat(2, 1fr); */
        grid-auto-flow: column;
        grid-auto-columns: minmax(100px, 1fr);
        overflow-y: hidden;
        overflow-x: auto;
    }
    
    .gender-tab {
        padding: 10px;
        font-size: 14px;
    }
}

/* Custom icons for saree and scarf if not available in FontAwesome */
.fa-saree:before,
.fa-scarf:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fa-saree:before {
    content: "\f6fc"; /* Using a wrap/saree-like icon */
}

.fa-scarf:before {
    content: "\f5e8"; /* Using a scarf-like icon */
}

.product-type-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}