@import url("header.css");
@import url("models.css");
@import url("settings.css");
@import url("preview.css");
@import url("prompt.css");
@import url("history.css");
@import url("seo.css");
@import url("footer.css");



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.imggen-page{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 50% -120px, rgba(15, 106, 190, .24), transparent 55%),
    linear-gradient(180deg, #0b0c12 0%, #0b0c12 100%);
  color: #f4f6ff;
  padding: 20px 18px 28px;
  min-height: 100vh;
  box-sizing: border-box;
}

.imggen-page *{
  box-sizing: border-box;
}

.imggen-layout{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: start;
}

.imggen-column{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.imggen-card{
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  position: relative;
}


.imggen-card__badge{
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(18, 20, 28, .9);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.imggen-icon-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 0;
  background: rgba(18, 20, 28, .95);
  color: #fff;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  cursor: pointer;
}

.imggen-btn{
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.imggen-btn--ghost{
  background: transparent;
}

.imggen-btn--primary{
  background: linear-gradient(90deg, #1e86dc, #2a92e6 55%, #0f6abe);
  border-color: rgba(86, 169, 255, .35);
  box-shadow: 0 10px 20px rgba(15, 106, 190,.25);
}

.imggen-btn__mobile-price,
.imggen-btn__mobile-arrow {
  display: none;
}

.imggen-btn:disabled {
  opacity: .38;
  filter: grayscale(.65);
  cursor: not-allowed;
  box-shadow: none;
}

.imggen-btn--primary:disabled {
  background: #394454;
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}

.imggen-panel{
  padding: 16px;
}

.imggen-panel + .imggen-panel{
  margin-top: 10px;
}

.imggen-section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.imggen-section-head__title{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.imggen-section-head__link,
.imggen-section-head__sub{
  color: #c7cad9;
  font-size: 14px;
  cursor: pointer;
}

.imggen-auth-overlay{
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(3, 5, 12, .78);
  backdrop-filter: blur(7px);
}

.imggen-auth-modal{
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  padding: 34px 28px 28px;
  border: 1px solid rgba(75, 151, 226, .3);
  border-radius: 22px;
  background:
    radial-gradient(400px 220px at 50% 0%, rgba(15, 106, 190, .2), transparent 70%),
    linear-gradient(180deg, #151925 0%, #0e111a 100%);
  color: #f4f6ff;
  text-align: center;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .65);
}

.imggen-auth-modal[hidden],
.imggen-auth-overlay[hidden]{
  display: none !important;
}

.imggen-auth-modal__icon{
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 151, 231, .35);
  border-radius: 18px;
  background: rgba(30, 134, 220, .13);
  color: #65b8ff;
  font-size: 30px;
  box-shadow: 0 0 28px rgba(30, 134, 220, .13);
}



.imggen-auth-modal__button:hover{
  transform: translateY(-1px);
}

.imggen-auth-modal__button--primary{
  background: linear-gradient(135deg, #1688e5, #1765b8);
  color: #fff;
  box-shadow: 0 5px 18px rgba(22, 136, 229, .2);
}

.imggen-auth-modal__button--primary:hover{
  background: linear-gradient(135deg, #299af2, #1b75ca);
}

.imggen-auth-modal__button--secondary{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: #e1e7f5;
}

.imggen-auth-modal__button--secondary:hover{
  border-color: rgba(75, 151, 226, .45);
  background: rgba(30, 134, 220, .1);
}

.imggen-auth-modal__close{
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8993a8;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.imggen-auth-modal__close:hover{
  background: rgba(255,255,255,.07);
  color: #fff;
}

.imggen-auth-modal__title {
  margin-bottom: 12px;
  color: #f4f6ff;
  font-size: 23px;
  font-weight: 800;
}

.imggen-auth-modal__text {
  margin-bottom: 22px;
  color: #e1e7f5;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.imggen-auth-modal__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.imggen-auth-modal__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
  flex: 0 0 auto;
  min-height: 35px;
  padding: 4px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.imggen-auth-modal__button[hidden] {
  display: none !important;
}