:root{
  --muted: rgba(15, 23, 42, 0.6);
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --maxw: 1100px;
  --pad: 16px;
  --safe-bottom: 80px;

  --bgTop: #ffffff;
  --bgMid: #fffdf8;
  --bgBot: #f8f1de;

  --veil: rgba(248, 241, 222, 0.92);
  --footer-bg: #f8f1de;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;

    background: linear-gradient(
    to bottom,
    var(--bgTop) 0%,
    var(--bgTop) 60%,
    var(--bgMid) 72%,
    var(--bgBot) 100%
  );

  overflow: hidden;
}

.auth-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
  width: 100%;
  box-sizing: border-box;

  position: sticky;
  top: 0;
  z-index: 60;

  background: white;
  backdrop-filter: blur(12px);

  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 18px;
}

body.landing-mode .auth-buttons{
  display: none; !important;
}

.right-buttons{
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.auth-buttons .btn {
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.sign-in { background-color: #f0f0f0; color: #333; }
.sign-in:hover { background-color: #e0e0e0; }

.sign-up { background-color: black; color: white; }
.sign-up:hover { background-color: #333; }

.left-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-start;
}

.center-logo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo-auth-buttons {
    height: 25px;
}

.icon-btn, .icon-bubble {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.icon-bubble img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}


.icon-btn::after,.icon-bubble::after,.chat-input__attach::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.icon-btn:hover::after,
.icon-bubble:hover::after { opacity: 1; }

.chat-input__attach:hover::after { opacity: 1; transform: translateX(-50%); }

.icon-btn:hover, .icon-bubble:hover {
  background-color: rgba(230, 230, 230, 0.8);
}

.hidden { display: none !important; }
.visible { display: flex !important; }

.app {
  height: calc(100dvh - 0px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.main {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding:  0px 10px 18px 10px;
}

.main {
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 180, 180, 0.6) transparent;
  border-radius: 10px;
}
.main::-webkit-scrollbar { width: 8px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.main::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 120, 0.8);
  background-clip: content-box;
}

.content {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
   padding-bottom: 0;
  box-sizing: border-box;
}

.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4.8px 0;
}

.logo img{
  height: 55px;
  margin-top: 12.5px;
}

.titles { text-align: center; margin-bottom: 9.5px; }

.titles h2{
  font-size: 15px;
  font-weight: 400;
  color:#555;
  margin: 4.8px 0;
}

.titles h1{
  font-size: 30px;
}

.divider, .divider-footer {
  height: 1px;
  width: 100%;
   max-width: 84px;
   margin: 0 auto 7.5px;
  border-radius: 1px;
  background: linear-gradient(to right, transparent, #e6b843, transparent);
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 0 10px 10px 10px;
  box-sizing: border-box;
}

.content-wrapper h1{
  font-size: 20px;
  margin: 0 0 9.5px 0;
  text-align: center;
  width: 100%;
}

.content-wrapper > h1{
  font-size: 20px;
  line-height: 1.11;
}



.triangle-text{
  text-align: center;
  font-size: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 20px auto 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.step {
  background: rgba(255,255,255,0.75);
  border-radius: 12px;
  padding: 25px 10px 15px;
  flex: 1 1 220px;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.10);
  position: relative;
  backdrop-filter: blur(8px);
}


.step .icon {
  position: absolute;
  top: -22.5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px;
}

.step .icon img { width: 43px; height: auto; }

.step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  margin-top: 10px;
}

.step p {
  font-size: 13px;
  line-height: 1.3;
  margin: 4.5px 0 0;
  flex-grow: 1;
  font-family: 'Inter', sans-serif;
}


.arrow {
  width: 11.2px;
  height: auto;
  align-self: center;
}


@media (max-width: 900px) {
  .arrow { display: none; }
  .steps { gap: 30px; }
}

.chat-area {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/*
.chat-messages{
  display: flex;
  flex-direction: column;
  gap: 16.5px;
  padding: 12.5px 12.5px 140px 12.5px;
  box-sizing: border-box;
}*/

.chat-messages{
  display: flex;
  flex-direction: column;
  gap: 16.5px;
  padding: 12.5px 12.5px 285px 12.5px;
  box-sizing: border-box;
}

.message { display: flex; }
.message.user { justify-content: flex-end; }
.message.assistant { justify-content: flex-start; }

.bubble-wrap{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
}

.bubble {
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.41;
    padding: 8.5px 12.5px;
    word-wrap: break-word;
    font-family: 'Inter', sans-serif;
}

.message.user .bubble {
    background-color: #f1f1f1;
    color: #000000;
}

.message.assistant .bubble {
  color: #000;
  max-width: 90%;
}

.bubble h4 { margin: 0; }
.bubble p { margin: 5px 0; }

.bubble-buttons{
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

.bottom-veil{
  position: fixed;
  right: 0;
  bottom: 0;
  height: 132px;
  z-index: 30;
  pointer-events: none;
    background: linear-gradient(
    to top,
    rgba(248,241,222,0.92) 0%,
    rgba(248,241,222,0.55) 45%,
    rgba(248,241,222,0.0) 100%
  );
  backdrop-filter: blur(10px);
}

.composer-panel{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 45;
  padding: 4.5px var(--pad);
  background: transparent;
  pointer-events: none;
}

.chat-input{
  --radius: 16px;
  --shadow: 0 6px 16px rgba(0, 0, 0, .08);
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.chat-input:focus-within{
    border-color: #d7b256;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.chat-input-bottom{
  flex: 9;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.chat-input__field {
  border: none;
  outline: none;
  background: transparent;
  font: 500 13px/1.5 Inter, sans-serif;
  color: #111;
  resize: none;
  font-size: 15px;
  overflow: hidden;
  min-height: 15.8px;
  line-height: 15.8px;
  padding: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
}

.chat-input__field::placeholder { color: rgba(15,23,42,0.35); }

.floating-title{
    position: absolute;
    bottom: 58%;
    left: 50%;
    transform: translateX(-50%);
}
#emptyState .titles,
#emptyState .divider {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.input_buttons{
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: flex-end;
}

.chat-input__send, .chat-input__attach{
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  width: 25.5px;
  height: 25.5px;
  cursor: pointer;
}

.chat-input__send{
  background: #0b0b0c;
  color: #fff;
}
.chat-input__send:hover{ filter: brightness(1.08); }

.chat-input__send.is-streaming .icon-send { display: none; }
.chat-input__send.is-streaming .icon-stop { display: block; }

.chat-input__send .icon-stop{
  color: #fff;
}

.chat-input__attach{
  background: rgba(255,255,255,0.75);
  color: #6c6969;
  transition: background 0.2s ease;
  position: relative;
  border: 1px solid rgba(15,23,42,0.10);
}
.chat-input__attach:hover{ background: rgba(230, 230, 230, 0.8); }

.chat-input__send .icon, .chat-input__attach .icon{
  width: 12.8px;
  height: 12.8px;
}

@media (max-width: 480px) {
  .chat-input { padding: 8px 10px 8px 12px; }
}

.footer-panel{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;

  background: var(--footer-bg);

  color:#999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 4.5px;
  font-size: 12px;
  padding: 4px 14px;

}

@keyframes fadeIn {
  from { opacity:0; transform: translateY(4px); }
  to   { opacity:1; transform: translateY(0); }
}

.attached-file-bubble, .attached-preview{
  width: auto;
  display: inline-flex;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  padding: 10px 14px;
  align-items: center;
  gap: 12px;

  margin-bottom: 10px;
  animation: fadeIn 0.2s ease-out;

  backdrop-filter: blur(8px);
}

 .attached-preview{
    align-self: flex-start;
}

.attached-file-icon {
  width: 32px;
  height: 32px;
  background: rgba(15,23,42,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attached-file-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.attached-file-name {
  font-size: 15px;
  flex: 1;
  color: #333;
  cursor: pointer;
}
.attached-file-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(15,23,42,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attached-file-remove:hover { background: rgba(15,23,42,0.10); }
.attached-file-remove svg { width: 12px; height: 12px; }

.bubble p.assistant-text.thinking {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  margin: 10px 0;
  font-size: 17px;
}

.bubble p.assistant-text.thinking .thinking-label {
  background: linear-gradient(90deg, #777, #bbb, #777);
  background-size: 200%;
  -webkit-background-clip: text;
  color: transparent;
  animation: shimmer 1.5s infinite linear;
  font-weight: 500;
}

.bubble p.assistant-text.thinking .dots {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 5px;
}

.bubble p.assistant-text.thinking .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #999;
  opacity: 0.8;
  animation: bounce 0.6s infinite alternate;
}
.bubble p.assistant-text.thinking .dot2 { animation-delay: 0.15s; }
.bubble p.assistant-text.thinking .dot3 { animation-delay: 0.30s; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes bounce {
  from { transform: translateY(0); opacity: 0.5; }
  to   { transform: translateY(-4px); opacity: 1; }
}

.assistant-text.streaming { white-space: pre-wrap; }

.codeblock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 12px;
  color: #666;
  background: rgba(0,0,0,0.03);
}

.codeblock__copy {
  border: 0;
  background: rgba(0,0,0,0.06);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: #444;
}

.codeblock {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.04);
}

.codeblock pre,
.codeblock code,
.codeblock .hljs {
  background: transparent !important;
}

.codeblock pre {
  margin: 0;
  padding: 12px;
}

.codeblock code {
  color: #444;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .auth-buttons { padding: 5px 10px; }
  .step { max-width: 110px; }
  .main::-webkit-scrollbar { display: none; }
}

@media (max-width: 501px) {
  .auth-buttons .sign-up { display: none; }
}

@media (max-width: 400px) {
  .step { max-width: 100px; }
}

.inline-code {
  background: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

.bubble .bold { font-weight: bold; }
.bubble .italic { font-style: italic; }
.bubble .h1 { font-weight: bold; font-size: 1.4rem; display:block; margin-top:10px; }
.bubble .h2 { font-weight: bold; font-size: 1.2rem; display:block; margin-top:8px; }
.bubble .h3 { font-weight: bold; font-size: 1.1rem; display:block; margin-top:6px; }
.bubble .bullet { display:block; margin-left:1rem; }

.app.is-empty .composer-panel{
  top: 55%;
  bottom: auto;

  left: 50%;
  right: auto;
  width: 100%;
  transform: translate(-50%, -50%);
}

.app.is-empty .bottom-veil,
.app.is-empty .footer-panel{
  display: none;
}

@keyframes fadeInDrop {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo,
.titles,
.divider,
.content-wrapper,
.step,
.chat-input,
.footer-panel {
    opacity: 0;
    animation: fadeInDrop 0.8s ease-out forwards;
}

.logo { animation-delay: 0.1s; }
.titles { animation-delay: 0.3s; }
.divider { animation-delay: 0.5s; }
.content-wrapper { animation-delay: 0.7s; }
.step { animation-delay: 0.9s; }
.chat-input { animation-delay: 1.2s; }
.footer-panel { animation-delay: 1.5s; }

#emptyState h1{
    font-size: 30px;
  font-weight:700;
  margin-bottom:10px;
}

#emptyState h2{
  color:#555;
  margin-bottom: 20px;
     font-size:15px;
}

.scroll-down{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
     bottom: 130px;

  z-index: 46;
  width: 34px;
  height: 34px;

  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}


.scroll-down .icon{
  width: 18px;
  height: 18px;
  color: rgba(15,23,42,0.7);
}

.scroll-down:hover{
  filter: brightness(1.03);
}

.app.is-empty .scroll-down{ display:none !important; }

 .imggen-card{
      position: relative;
      width: min(520px, 100%);
      border-radius: 18px;
      overflow: hidden;
      cursor: pointer;
      box-shadow: 0 10px 30px rgba(15,23,42,.14);
      border: 1px solid rgba(15,23,42,.10);
      margin-top: 20px;
      background: #fff;
    }

    .imggen-card img{
      display:block;
      width:100%;
      height:auto;
    }

    .imggen-image-surface{
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      display: inline-block;
      max-width: 100%;
      max-height: calc(100vh - 96px);
    }

    @keyframes imggenBlink{
      0%{ opacity:.25; transform: translateY(0); }
      20%{ opacity:1; transform: translateY(-1px); }
      100%{ opacity:.25; transform: translateY(0); }
    }

   .imggen-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;

  background: transparent !important;
  opacity: 1 !important;
  filter: none !important;
}

   .imggen-modal::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.92);
}

.imggen-modal.open{ display:flex; }

.imggen-modal-stage{
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 96px);

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent !important;
  border-radius: 0;
}

.imggen-image-surface{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  max-width: 100%;
  max-height: calc(100vh - 96px);

  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 30px rgba(15,23,42,.14);
}

.imggen-modal-img{
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;

  background: transparent !important;
  border-radius: 0 !important;

  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.imggen-modal-close,
.imggen-modal-download{
  position: fixed;
  top: 18px;
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  z-index: 10000;

  border: 1px solid rgba(255,255,255,.12);
}

.imggen-modal-close{ right: 18px; }
.imggen-modal-download{ right: 74px; }

.imggen-download{
  position:absolute;
  top: 12px;
  right: 12px;

  width: 42px;
  height: 42px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;

  color:#fff;
  text-decoration:none;
  font-size: 18px;
  line-height: 1;

  opacity: 0;
  transform: scale(.98);
  transition: opacity .18s ease, transform .15s ease, background .15s ease;
}

.imggen-card:hover .imggen-download{
  opacity: 1;
  transform: scale(1.05);
}

.imggen-download:hover{
  background: rgba(0,0,0,.78);
}

@media (max-width: 768px){
   .app.is-empty .composer-panel{
    bottom: 35%;
    left: 50%;
    right: auto;
    width: 95%;
    transform: translate(-50%, -50%);
  }

  .app.landing-mode .content {
    padding-bottom: var(--safe-bottom);
  }

.chat-messages{
  padding-left:10px ;
  padding-right: 10px;
}

#emptyState h1
 {
  font-size: 35px;
}

.landing {padding: 30px 0; }

.logo img {
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
  margin-top: 20px;
}

.titles h1 {
    font-size: 32px;
}

.titles {
  margin-bottom: 8px;
}
.titles h2 {
  font-size: 16px;
  margin: 8px 0 8px;
}
h1 { margin-top: 0; }

.divider{
    max-width: 100px;
    margin: 0 auto 10px;
}

.triangle-text {
  font-size: 18px;
  line-height: 1.5;
  margin-top:18px ;
  margin-bottom:18px ;
}

.content-wrapper{
   padding: 0 10px 20px 10px;
}

.content-wrapper h1 {
  font-size: 25px;
  margin: 0 0 15px 0;
}

.steps{
  gap: 30px;
  margin: 25px auto;
}

.step{
  padding: 40px 15px 20px;
  max-width: 120px;
}

.step .icon{  top: -30px;}

.step .icon img{ width: 55px; }

.step p{
    font-size: 15px;
   line-height: 1.4;
}


.step h3{
    font-size: 18px;
}

.arrow{ width: 15px; }

.bubble{
  font-size: 17px;
  line-height: 1.5;
}

/* .chat-messages{
   gap: 25px;
  padding: 20px 20px 200px 20px;
}*/

  .chat-messages{
  gap: 25px;
  padding: 20px 20px 285px 20px;
}

.composer-panel{
   bottom: 40px;
  padding: 10px var(--pad);
}

.chat-input{
     padding: 10px 10px 10px 15px;
}

.chat-input__field{
   font: 500 17px/1.5 Inter, sans-serif;
  line-height: 22px;
   min-height: 22px;
}
.chat-input__send,
.chat-input__attach{
   width: 32px;
  height: 32px;
}
.chat-input__send .icon,
.chat-input__attach .icon{

  width: 16px;
  height: 16px;
}
.bottom-veil{ height: 220px;}

.footer-panel{
  font-size: 14px;
   padding: 8px 16px;
  gap: 7px;
}
.logo-auth-buttons { height: 30px; }

.auth-buttons {
    padding: 10px 20px;
}

.icon-btn img {
 width: 25px;
  height: 25px;
}

.icon-bubble img {
   width: 20px;
  height: 20px;
}

#emptyState h1 {
    font-size:40px;
}

#emptyState h2{
  font-size:20px;
}
}


@media (max-width: 1024px) {

  .app.is-empty .composer-panel{
    width: 95%;
    bottom: 35%;

    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
}

html { font-size: 12.35px; }
body { font-size: 1rem; }

.main{
  padding: 0px 10px 11.5px 10px;
}

.wrap-form{
  width:min(900px, 92vw);
  text-align:center;
  padding:14px 14px 22px;
}


.topmark{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:6px auto 30px;
}

.topmark .line{
  height:2px;
  flex:1;
  max-width:340px;
  background: linear-gradient(
    to right,
    rgba(15,23,42,0.08),
    rgba(15,23,42,0.14),
    rgba(15,23,42,0.08)
  );
  border-radius:999px;
  opacity:.75;
}

.topmark img{
  width:auto;
  height:20px;
  object-fit:contain;
  display:block;
}

 .wrap-form h1{
  font-size:34px;
  letter-spacing:-0.02em;
  margin:0 0 10px;
  font-weight:600;
}

.sub{
  margin:0 auto 14px;
  max-width:720px;
  font-size:14px;
  color:rgba(15,23,42,.62);
  line-height:1.35;
}

.rating{
  --starSize: 28px;
  --starGap: 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.stars{
  display:inline-flex;
  align-items:center;
  gap:var(--starGap);
  direction:rtl;
  unicode-bidi:bidi-override;
  user-select:none;
  position:relative;
  padding-bottom:10px;
}

.stars::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width: calc((var(--starSize) * 6) + (var(--starGap) * 5));
  height:1px;
  border-radius:999px;
  background: linear-gradient(to right, transparent, #e6b843, transparent);
  opacity:.75;
}

.stars input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.stars label{
  cursor:pointer;
  width:var(--starSize);
  height:var(--starSize);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transform:translateZ(0);
  transition:transform .12s ease;
}

.stars label:hover{ transform: translateY(-1px) scale(1.03); }

.stars svg{
  width:var(--starSize);
  height:var(--starSize);
  display:block;
  filter:
    drop-shadow(0 2px 0 rgba(255,255,255,.65))
    drop-shadow(0 4px 8px rgba(15,23,42,.16));
}


.stars .shape{
  fill:transparent;
  stroke:#d7b256;
  stroke-width:1.7;
}


.stars label:hover .shape,
.stars label:hover ~ label .shape{
  fill:#e6b843;
  stroke:#d7b256;
}


.stars input:checked ~ label .shape{
  fill:#e6b843;
  stroke:#d7b256;
}


.box,  .wrap-form input{
  width:min(720px, 100%);
  margin:20px auto 0;
  padding:10px;
  border-radius:14px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:1px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 10px 24px rgba(15,23,42,.10);
}


 .wrap-form textarea,  .wrap-form input::placeholder{
  width:100%;
  min-height:76px;
  resize:none;
  border:0;
  outline:none;
  background:transparent;
  font-family:'Inter', sans-serif;
  font-size:15px;
  line-height:1.35;
  color:#111;
  padding:6px 8px;
}

 .wrap-form textarea::placeholder, .wrap-form input::placeholder{
  color:rgba(15,23,42,.45);
  font-weight:500;
}


.btn-form{
  width:min(720px, 100%);
  margin:20px auto 0;
  height:42px;
  border:0;
  border-radius:10px;
  cursor:pointer;
  font-family:'Inter', sans-serif;
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,.92);
  background: linear-gradient(90deg, #caa128 0%, #e6b843 45%, #f5d35f 100%);
  box-shadow:0 10px 22px rgba(15,23,42,.12);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.btn-form:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(15,23,42,.14);
}

.btn-form:active{
  transform:translateY(0px);
  filter:brightness(.99);
}


@media (max-width: 560px){
  .wrap-form h1{ font-size:28px; }
  .sub{ font-size:13px; }
  .topmark .line{ max-width:180px; }
  .topmark img{ height:16px; }
  .rating{ --starSize: 26px; }
  .btn-form{ height:44px; }
}


.success{
  opacity:0;
  transform: translateY(30px) scale(0.98);
  animation: fadeSlideUp 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}

.success h2{
  font-size:32px;
  font-weight:600;
  margin:0 0 10px;
  letter-spacing:-0.02em;
}

.success p{
  font-size:15px;
  color:rgba(15,23,42,.6);
}


.error-message{
  width:min(720px, 100%);
  margin:10px auto 0;
  font-size:13px;
  font-weight:500;
  color:#e5484d;
  opacity:0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events:none;
}

.error-message.show{
  opacity:1;
  transform: translateY(0);
}


.divider-form{
  opacity:1;
  transform: translateY(0);
  height:1px;
  margin:0 auto 15px;
  border-radius:1px;
  background: linear-gradient(to right, transparent, #e6b843, transparent);
}

.success-text{
  display:inline-block;
  text-align:center;
}


.box,
.email-box,
 .wrap-form input,
 .wrap-form textarea,
.btn-form{
  box-sizing:border-box;
}


.box:focus-within,
.email-input:focus-within{
  border-color:#e6b843;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 0 0 2px rgba(230,184,67,.25),
    0 10px 24px rgba(15,23,42,.10);
}

.email-input:focus,
 .wrap-form textarea:focus{
  outline:none;
  box-shadow:none;
}

@keyframes fadeSlideUp{
  to{
    opacity:1;
    transform: translateY(0) scale(1);
  }
}

.message.form-message{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
}

.wrap-form.form-animate{
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: fadeSlideUp 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}

.bubble-quota {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  color: #8f96a3;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble-quota__sep {
  color: #b0b6c0;
}

.feedback-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: feedbackOverlayFade .22s ease;
}

.feedback-modal-card{
  position: relative;
  width: min(940px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.97),
    rgba(248,241,222,0.98)
  );
  box-shadow:
    0 24px 80px rgba(15,23,42,.22),
    0 8px 30px rgba(15,23,42,.12);
  border: 1px solid rgba(15,23,42,.10);
  animation: feedbackModalPop .28s cubic-bezier(.2,.8,.2,1);
}

.feedback-modal-card .wrap-form{
  width: 100%;
  max-width: none;
  padding: 24px 22px 26px;
  box-sizing: border-box;
}


.feedback-modal-card {
  position: relative;
}

.feedback-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 32px;
  height: 32px;

  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;

  opacity: 0.7;
  transition: 0.2s;
}

.feedback-modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}


.feedback-bonus-notice {
  position: relative;
  margin: 14px auto;
  padding: 18px 52px 18px 18px;
  max-width: 740px;
  border-radius: 26px;
  border: 2px solid #d5aa45;
  background: #f8f5ef;
  color: #1f1f1f;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;

  opacity: 0;
transform: translateY(-16px) scale(0.98);
animation: fadeInDropSmooth 0.28s cubic-bezier(0.25, 0.9, 0.3, 1) forwards;
}

.feedback-bonus-notice__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #fffaf0;
  border: 1px solid rgba(213, 170, 69, 0.45);
  box-shadow: 0 4px 12px rgba(213, 170, 69, 0.15);
}

.feedback-bonus-notice__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feedback-bonus-notice__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a47a1c;
}

.feedback-bonus-notice__message {
  font-size: 16px;
  line-height: 1.45;
  color: #1c1c1c;
}

.feedback-bonus-notice__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6f6a5f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.9;
}

.feedback-bonus-notice__close:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.06);
}

.feedback-bonus-notice__close:active {
  transform: scale(0.98);
}

.feedback-bonus-notice--success .feedback-bonus-notice__icon {
  background: #fff7df;
}

.feedback-bonus-notice--info .feedback-bonus-notice__icon {
  background: #f5efe4;
}

.feedback-bonus-notice--error .feedback-bonus-notice__icon {
  background: #fff1e8;
}

@keyframes fadeInDropSmooth {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOutSoft {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
}

.feedback-bonus-notice.is-hiding {
  animation: fadeOutSoft 0.24s ease forwards;
}

@media (max-width: 768px) {
  .feedback-bonus-notice {
    margin: 10px 12px;
    padding: 16px 44px 16px 14px;
    border-radius: 22px;
    gap: 10px;
  }

  .feedback-bonus-notice__icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-radius: 12px;
  }

  .feedback-bonus-notice__message {
    font-size: 14px;
  }
}