#balance-warning {
    position: fixed;              
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 23, 64, 0.9);
    color: #fff;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 0 30px #4a90e2;
    font-weight: bold;
    font-size: 18px;
    max-width: 90vw;             
    text-align: center;
    z-index: 23;              
    display: none;              
    box-sizing: border-box;
}

@media (max-width: 480px) {
    #balance-warning {
        width: 90vw;               
        max-width: none;          
        padding: 20px 25px;        
        font-size: 16px;          
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 10px;
        z-index: 22; 
    }
}

#center-container {
  height: 100vh;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(190px + 20px);   
  right: calc(260px + 20px);  
  height: 100vh;
  box-sizing: border-box;
  padding: 20px;
  gap: 20px;
  overflow-y: auto;
  background: transparent;
  border-radius: 10px;
}

#left-panel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}

#right-panel {
  display: flex;
  flex: 1 1 50%;
  flex-direction: column;
  width: 50%;
  max-height: 100vh;
  background: rgba(10, 23, 64, 0.8);
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(58, 123, 197, 0.7);
  border: 1px solid rgba(74,144,226,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  overflow-y: auto;
}  

#main-photo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(10, 23, 64, 0.8);
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
  border: 1px solid rgba(74,144,226,0.3);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  user-select: none;
}

#main-photo-upload label {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 18px;
  user-select: none;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}


.photo-slot label > span:not(:first-child),
#main-photo-upload label > span:not(:first-child) {
  display: none; 
}  


#main-photo-upload img.preview-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
  pointer-events: none;
}


#main-photo-upload.preview-loaded label {
  color: transparent; 
}


#btn-generate {
  position: fixed;
  bottom: 70px;
  left: calc( (110px + 20px) + (100vw - (190px + 20px) - (260px + 20px)) / 2 );
  transform: translateX(-50%);
  background-color: #4a90e2;
  border: 4px solid #2c6ecb;
  box-shadow:
    2px 2px 0 #12499f,
    inset 0 0 5px #6da3f1;
  border-radius: 50% / 50% 60% 80% 60%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.15s ease-in-out;
  text-shadow:
    0 1px 1px #174b9e;
}

#btn-generate:hover,
#btn-generate:focus {
  background-color: #2c6ecb;
  border-color: #1b4f8a;
  box-shadow:
    3px 3px 0 #0b2c60,
    inset 0 0 8px #396ae3;
  transform: translateX(-50%) scale(1.1) rotate(-4deg);
  text-shadow:
    0 0 10px #aad1ff;
  outline: none;
}


#generated-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
}

input[type="file"] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.clear-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(74, 144, 226, 0.85);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-weight: bold;
  font-size: 18px; 
  color: white;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px #4a90e2;
  transition: background-color 0.3s ease;
  z-index: 5;
}

.clear-button:hover,
.clear-button:focus {
  background-color: #357abd;
  outline: none;
}


#sidebar-container-caricature_style {
  width: 240px; 
  max-height: 650px;
  position: fixed;
  top: 20px;
  bottom: 0;
  right: 30px; 
  overflow-y: auto;
  padding: 15px;
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    #4f88cc 10%,
    #7d98bf 20%,
    #355a92 40%,
    #5d7db3 60%,
    #3a5785 80%,
    #7da1d0 90%
  );

  box-shadow:
    8px 8px 0 #203663,
    inset 0 0 0 1px #1e3769;
  color: #aac4ff; 
  border: 5px solid #324b86;  
  border-radius: 15px;
  z-index: 10;
  overflow-x: hidden;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#sidebar-container-caricature_style:hover {
  box-shadow:
    6px 6px 1px #294b90,
    inset 0 0 10px 2px rgba(50, 80, 160, 0.15),
    15px 8px 18px rgba(25, 35, 95, 0.20),
    25px 15px 36px rgba(18, 28, 60, 0.18),
    38px 22px 50px rgba(12, 18, 45, 0.16);
  border-color: #243f73; 
}



#aspect-ratio-selector {
    margin-bottom: 0px;
    margin-top: 5px;
}

.aspect-ratio-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin-top: 5px;
}

.aspect-ratio-label {
  background: linear-gradient(135deg, #557bd1, #3a5abf);
  border: 3px solid #2c4a8b;
  border-radius: 15px;
  box-shadow:
    2px 2px 0 #20407d,
    inset 0 0 8px #4c71ce;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  text-align: center;
  padding: 4px 12px;
  filter: drop-shadow(1px 1px rgba(30, 50, 130, 0.6));
  font-family: 'Comic Sans MS', cursive, sans-serif;
}

.aspect-ratio-label input[type="radio"] {
    display: none;
}

.aspect-ratio-label .aspect-ratio-text {
  flex-grow: 1;
  text-align: center;
  padding: 0;
  border-radius: 10px;
}

.aspect-ratio-label:hover,
.aspect-ratio-label:focus {
  background: linear-gradient(135deg, #3b63b6, #2a4b8e);
  border-color: #192e67;
  box-shadow:
    3px 3px 0 #122552,
    inset 0 0 12px #517cca;
  color: #e1e7ff;
  outline: none;
  filter: drop-shadow(0 0 10px rgba(80, 110, 255, 0.8));
}


.aspect-ratio-label.active {
  background: linear-gradient(135deg, #2a43aa, #1b2f77);
  border-color: #132364;
  box-shadow:
    3px 3px 8px #162e8a,
    inset 0 0 14px #3957e8;
  color: #f0f4ff;
  font-weight: 900;
  filter: drop-shadow(0 0 12px rgba(70, 100, 255, 0.9));
  cursor: default;
  pointer-events: none;
}


.aspect-ratio-label input[type="radio"]:checked + .aspect-ratio-text,
.aspect-ratio-label input[type="radio"]:checked {
  color: #e5edff;
  font-weight: 900;
}

.aspect-ratio-header {
    color: #fff;
    font-size: 18px;
    user-select: none;
    font-weight: 900;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}


.image-format-btn {
  flex: 1;
  padding: 4px 12px;                
  font-weight: 700;                
  border-radius: 15px;             
  border: 3px solid #2c4a8b;     
  background: linear-gradient(135deg, #557bd1, #3a5abf); 
  color: #fff;
  cursor: pointer;
  box-shadow:
    2px 2px 0 #20407d,
    inset 0 0 8px #4c71ce;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  user-select: none;
  font-size: 14px;
  text-align: center;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  filter: drop-shadow(1px 1px rgba(30, 50, 130, 0.6));
  outline: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}


.image-format-btn:hover,
.image-format-btn:focus {
  background: linear-gradient(135deg, #3b63b6, #2a4b8e);
  border-color: #192e67;
  box-shadow:
    3px 3px 0 #122552,
    inset 0 0 12px #517cca;
  color: #e1e7ff;
  outline: none;
  filter: drop-shadow(0 0 10px rgba(80, 110, 255, 0.8));
}


.image-format-btn.active {
  background: linear-gradient(135deg, #2a43aa, #1b2f77);
  border-color: #132364;
  box-shadow:
    3px 3px 8px #162e8a,
    inset 0 0 14px #3957e8;
  color: #f0f4ff;
  font-weight: 900;
  cursor: default;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(70, 100, 255, 0.9));
}




#model-sidebar {
  background: rgba(10, 23, 64, 0.8);         
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);  
  color: white;
  padding: 10px 10px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 5px;
}



.model-btn-chat-link {
  background: linear-gradient(135deg, #557bd1, #3a5abf);
  border: 3px solid #2c4a8b;
  border-radius: 15px;
  box-shadow:
    2px 2px 0 #20407d,
    inset 0 0 8px #4c71ce;
  font-weight: 700;
  font-size: 16px;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  text-align: center;
  padding: 4px 12px;
  filter: drop-shadow(1px 1px rgba(30, 50, 130, 0.6));
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none; 
}

.model-btn-chat-link:hover,
.model-btn-chat-link:focus {
  background: linear-gradient(135deg, #3b63b6, #2a4b8e);
  border-color: #192e67;
  box-shadow:
    3px 3px 0 #122552,
    inset 0 0 12px #517cca;
  color: #e1e7ff;
  outline: none;
  filter: drop-shadow(0 0 10px rgba(80, 110, 255, 0.8));
}

.model-btn-chat-link.active {
  background: linear-gradient(135deg, #2a43aa, #1b2f77);
  border-color: #132364;
  box-shadow:
    3px 3px 8px #162e8a,
    inset 0 0 14px #3957e8;
  color: #f0f4ff;
  font-weight: 900;
  filter: drop-shadow(0 0 12px rgba(70, 100, 255, 0.9));
  cursor: default;
  pointer-events: none;
}




.balance-separator {
    height: 1px;
    background: rgba(74, 144, 226, 0.5);
    margin: 10px;
}

.balance-text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: white;
    font-weight: normal;
}


#model-prices-list {
    font-size: 12px;
    margin: 0 24px;
    margin-top: 4px; 
}


#generated-images-container {
  padding-top: 15px;
  padding-bottom: 15px;
  overflow-y: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: none;       
  -ms-overflow-style: none;   
}

#generated-images-container::-webkit-scrollbar {
  display: none;              
}

#generated-images-container img {
  cursor: pointer;
}

.generated-photo-window {
  position: relative;
}

.download-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(135deg, #3a9fff, #0f63ff);
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 8px #3a9fff,
    0 0 15px #0f63ff;
  user-select: none;
  opacity: 0.8;
  transition:
    background 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

.download-icon:hover,
.download-icon:focus {
  background: linear-gradient(135deg, #0f63ff, #3a9fff);
  outline: none;
  opacity: 1;
  transform: scale(1.2) rotate(15deg);
  box-shadow:
    0 0 12px #3a9fff,
    0 0 20px #1a7eff,
    0 0 30px #0f63ff;
  animation: pulseGlow 1.5s infinite alternate ease-in-out;
}

.download-icon svg {
  stroke: white;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 12px #3a9fff,
      0 0 20px #1a7eff,
      0 0 30px #0f63ff;
  }
  100% {
    box-shadow:
      0 0 20px #5ab7ff,
      0 0 30px #3dafef,
      0 0 40px #3dafef;
  }
}



@keyframes mistMove {
    0% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 60%;
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
}

.generated-photo-window.timer-window {
    position: relative;
    border-radius: 15px;
    overflow: visible;
    aspect-ratio: 16 / 9;
    margin: 0 10px;
    box-shadow: 0 0 45px #3399ffbb inset;
    cursor: default;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 180px;

    background: linear-gradient(270deg,
        rgba(7, 12, 25, 0.9),
        rgba(48, 75, 115, 0.9),
        rgba(24, 40, 60, 0.95),
        rgba(60, 95, 150, 0.85),
        rgba(7, 12, 25, 0.9)
    );
    background-size: 350% 350%;
    animation: mistMove 40s ease-in-out infinite;
    color: #9bd8ff;
    font-weight: 700;
    font-size: 24px;
    user-select: none;
    padding: 30px 10px 20px 10px; 
    box-sizing: border-box;
}


.generated-photo-window .countdown-timer {
    position: relative;
    z-index: 10;
    font-weight: 700;
    font-family: Arial, sans-serif;
    letter-spacing: 0.15em;
    background: rgba(0, 0, 0, 0.45);
    padding: 10px 30px;
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(0, 170, 255, 1);
    user-select: none;
    font-size: 28px;
    color: #57bdfd;
    text-shadow:
        0 0 3px #2e9cff,
        0 0 6px #2e9cff,
        0 0 8px #2e9cff;
    transition: color 0.3s ease;
    min-width: 130px;
    text-align: center;
}


.timer-with-pulse {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


.timer-pulse-dot {
    width: 48px;  
    height: 48px;
    pointer-events: none;
}

.generated-photo-window.no-padding {
    padding: 0 !important;
}

#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 16;
  overflow: hidden;
}

#lightbox-image {
max-width:100vw; 
max-height:100vh; 
box-shadow: 0 0 20px #000;
}

body {
  background: linear-gradient(135deg, #b3d4fc, #79a4f3);
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #1a2a6c;
}

#center-container {
  position: fixed;
  top: 50%;
  left: 47%;
  transform: translate(-50%, -50%) perspective(1200px);
  width: calc(100vw - 460px);
  max-width: 1000px;
  height: 95vh;
  display: flex;
  gap: 15px;

  background: transparent;
  border: none;
  box-shadow: none;
  color: #b8c8f9;

  transform-style: preserve-3d;
  padding: 20px;  

  overflow: visible;
}

#left-panel {
  flex: 1 1 50%;
  background: #d9d7cc;
  border-radius: 25px 10px 10px 25px;

  box-shadow:
    3px 3px 0 #27448c,   
    inset 0 0 4px 1px rgba(40, 65, 130, 0.10),
    12px 6px 15px rgba(20, 30, 75, 0.16),
    20px 12px 30px rgba(15, 25, 55, 0.12),
    28px 18px 40px rgba(10, 18, 45, 0.10);

  padding: 20px;
  position: relative;
  transform-origin: right center;
  transform: rotateY(8deg);

  border: 3px dashed #4a6bbd;  

  filter: drop-shadow(1px 1px 0 #223c7a);
  transition: box-shadow 0.3s;
}

#right-panel {
  flex: 1 1 50%;
  background: #dddcbf;
  border-radius: 10px 25px 25px 10px;

  box-shadow:
    3px 6px 0 #2b3f7c,
    inset 0 0 4px 1px rgba(38, 58, 110, 0.10),


    -12px 6px 15px rgba(18, 28, 73, 0.20),
    -20px 12px 30px rgba(12, 22, 48, 0.16),
    -28px 18px 40px rgba(8, 15, 38, 0.12);

  padding: 20px;
  position: relative;
  transform-origin: left center;
  transform: rotateY(-8deg);

  border: 3px dashed #4b75d1; 

  cursor: default;

  filter: drop-shadow(1.5px 1.5px 0 #20366a);
  transition: box-shadow 0.3s;
  overflow: visible; 
}

#left-panel:hover,
#right-panel:hover {
  box-shadow:
    6px 6px 1px #294b90,
    inset 0 0 10px 2px rgba(50, 80, 160, 0.15),

    15px 8px 18px rgba(25, 35, 95, 0.20),
    25px 15px 36px rgba(18, 28, 60, 0.18),
    38px 22px 50px rgba(12, 18, 45, 0.16);
  transition: box-shadow 0.3s ease;
}

#left-panel::before,
#right-panel::before {
  content: '';
  position: absolute;
  top: 10px;       
  right: 10px;
  bottom: 10px;
  left: 10px;
  pointer-events: none;
  border-radius: inherit;
  
  background:
    radial-gradient(circle at 20% 25%, rgba(180, 160, 130, 0.15) 0, transparent 60px),
    radial-gradient(circle at 70% 70%, rgba(150, 130, 100, 0.12) 0, transparent 50px),
    radial-gradient(circle at 50% 50%, rgba(160, 140, 110, 0.1) 0, transparent 100px),
    
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 4px,
      rgba(190, 170, 140, 0.05) 5px,
      rgba(190, 170, 140, 0.05) 6px
    );
  
  background-blend-mode: multiply;
  z-index: 10;
}

#left-panel::after,
#right-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 15px 0 15px rgba(180, 160, 130, 0.15),
    inset -15px 0 15px rgba(180, 160, 130, 0.15);
  mix-blend-mode: multiply;
  z-index: 9;
}

#center-container::before {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  background: repeating-linear-gradient(
    to bottom,
    #a2baf9 0 4px,
    #2a3ec3 4px 8px
  );
  border-radius: 20px;
  box-shadow:
    inset 0 2px 4px #5171ef,
    0 0 8px #1a32a6;
  background-size: 100% 8px;
  z-index: 15;
}

#center-container::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  pointer-events: none;
  border-radius: 20px;
  background:
    repeating-radial-gradient(circle at center, #4a6fe0 3px, transparent 6px);
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  z-index: 20;
  opacity: 0.6;
}


#center-container::before {
  pointer-events: none; 
  user-select: none;
  position: fixed;
  z-index: 15;
  top: 50%;
  transform-style: preserve-3d;
}

.cartoon-character-left {
  position: absolute;
  top: 60px;
  left: -30px;
  width: 120px;
  height: 150px;
  background: url('/static/sphere/img/sasha.png') no-repeat center center;
  background-size: contain;
  filter: drop-shadow(2px 4px 3px rgba(0,0,0,0.2));
  
  transform-style: preserve-3d;
  transform-origin: left bottom;
  transform: rotateY(-25deg) rotateX(5deg) translateZ(15px) scale(1.5);
  z-index: 15;
  pointer-events: none; 
}

.cartoon-character-right {
  position: absolute;
  bottom: -10px;
  right: -40px;
  width: 120px;
  height: 160px;
  background: url('/static/sphere/img/vova.png') no-repeat center center;
  background-size: contain;
  filter: drop-shadow(2px 4px 3px rgba(0,0,0,0.25));

  transform-style: preserve-3d;
  transform-origin: right bottom;
  transform: rotateY(25deg) rotateX(7deg) translateZ(10px) scale(1.5);
  z-index: 15;
  pointer-events: none;
}


#decorative-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  color: #c4bcae;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.1;
  text-shadow:
    1px 1px 2px rgba(50,44,32,0.25),
    0 0 6px rgba(180,168,140,0.4);
  user-select: none;
  pointer-events: none;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  max-width: 90%;
  width: 580px;
}


@media (max-width: 767px) {
    
  
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100% !important;
    overflow-x: hidden;
  }    


*, *::before, *::after {
  box-sizing: inherit;
}
  
  #fantasy-bg {
    display: none !important;
  }  
  

  #center-container {
    width: 100% !important;        
    height: 100% !important;        
    max-width: none !important;      
    margin: 0 !important;             
    padding: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    position: relative !important;  
    overflow: hidden !important;
    display: block !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border: none !important;        
  }


#center-container::before {
    display: none !important;
}

#center-container::after {
    display: none !important;
}

#center-container::before {
    display: none !important;
}

#left-panel::before,
#right-panel::before,
#left-panel::after,
#right-panel::after {
 display: none !important;
}    

  .cartoon-character-left,
  .cartoon-character-right {
    display: none !important;
  }    
    

  #right-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    padding: 0 !important;
    overflow: auto !important;
    z-index: 10 !important;
  }
  
  #left-panel {
    position: fixed !important;
    bottom: 15px !important;
    left: 15px !important;
    width: 150px !important;
    max-height: none !important;
    height: auto !important;
    background: #d9d7cc !important; 
    border: 3px dashed #4a6bbd !important; 
    border-radius: 15px 15px 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    filter: none !important;        
    padding: 10px !important;
    overflow: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: default !important;
    transform: none !important;     
    z-index: 11 !important;
  }

#main-photo-upload {
  display: flex !important;
  width: 100%;
  height: 100px !important;     
  min-height: 100px !important; 
}
  

  #main-photo-upload img.preview-image {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    pointer-events: none !important;
    user-select: none !important;
  }  
  
  #btn-generate {
    position: fixed !important;
    bottom: 15px !important;
    right: -25px !important;    
    left: auto !important;    
    background: linear-gradient(45deg, #3a7bd5, #00d2ff, #3a7bd5, #00d2ff);
    background-size: 300% 300%;
    animation: gradientShiftVertical 6s ease infinite;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    cursor: pointer;
  }
  
  #sidebar-container-caricature_style {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 240px !important;
    max-height: 100vh !important;
    padding: 15px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow:
      -5px 0 10px rgba(0,0,0,0.3);
    background: linear-gradient(
      135deg,
      #4f88cc 10%,
      #7d98bf 20%,
      #355a92 40%,
      #5d7db3 60%,
      #3a5785 80%,
      #7da1d0 90%
    );
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
    z-index: 25; 
    overflow-y: auto;
  }

  #sidebar-container-caricature_style.open {
    transform: translateX(0);
  }

#model-sidebar {
  padding: 10px 10px !important;
  gap: 5px !important;
  width: 200px !important;
}

.model-btn-chat-link {
  font-size: 24px !important; 
  padding: 2px !important;

}

.model-links-wrapper .model-btn.special-link {
  font-family: 'Comic Sans MS', cursive, sans-serif !important;
  font-size: 24px !important;
  padding: 0px !important;
  text-decoration: none !important;
  user-select: none !important;
}

  #sidebar-toggle-btn {
    position: fixed !important;
    top: 50%; 
    transform: translateY(-50%);
    right: 240px; 
    width: 20px; 
    height: 100px; 
    background: linear-gradient(45deg, #3a7bd5, #00d2ff, #3a7bd5, #00d2ff);
    background-size: 300% 300%;
    animation: gradientShiftVertical 6s ease infinite;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    border-radius: 15px 0 0 15px;
    border: 1px solid #2c6ecb;
    box-shadow:
      2px 2px 0 #12499f,
      inset 0 0 5px #6da3f1;
    cursor: pointer;
    z-index: 24; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
  }

  #sidebar-container-caricature_style.open + #sidebar-toggle-btn {
    right: 236px; 
  }

  #sidebar-toggle-btn.closed {
    right: 0; 
  }

@keyframes gradientShiftVertical {
    0% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 50% 0%;
    }
}

#sidebar-icon-left,
#sidebar-icon-right {
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}

    #sidebar-container-qwen_image.open + #sidebar-toggle-btn #sidebar-icon-open {
        display: none;
    }
    #sidebar-container-qwen_image.open + #sidebar-toggle-btn #sidebar-icon-close {
        display: block;
    }
}

.user-logout-container {
 margin: 0 !important;   
}