* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:        #E91E8C;
  --pink2:       #C0399E;
  --purple:      #9B27AF;
  --purple2:     #7B1FA2;
  --gold:        #F9C02A;
  --bg-top:      #1a0a2e;
  --text:        #2C1654;
  --text-mid:    #6B4C8A;
  --text-light:  #A989C5;
  --white:       #fff;
  --card-bg:     rgba(255,255,255,0.92);
  --chip-bg:     rgba(255,255,255,0.82);
  --radius-card: 22px;
  --radius-btn:  18px;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(149deg, #f3e2ff 0%, #ffffff 20%, #ffd6f4 60%, #ff9f5d 80%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
}

/* -- TOP BAR ----------------------------------------------- */
.top-bar {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 6px 20px rgba(155, 39, 175, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}
.credits-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #ffb74d;
    border-radius: 30px;
    padding: 6px 14px;
    background: linear-gradient(169deg, #ffe711 0%, #ffffff 30%, #fff9a6 50%, #ffc600 100%);
}
.credits-icon  { font-size: 1rem; }
.credits-label {
    color: #432945;
    font-size: 17px;
    font-weight: 800;
}
.credits-value {
    color: #41434f;
    font-size: 17px;
    font-weight: 900;
}
.top-right { display: flex; gap: 8px; align-items: center; }
.top-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(169deg, #FF9800 0%, #FF9800 30%, #FF5722 50%, #9C27B0 100%);
    border-radius: 30px;
    padding: 8px 16px;
    color: #ffff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    border: 2px solid #FF9800;
    white-space: nowrap;
}
.top-btn:hover {
    background: linear-gradient(169deg, #ff11d1 0%, #8057c9 30%, #9C27B0 50%, #cf91ff 100%);
}
.top-btn.fill {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(233,30,140,0.4);
}
.top-btn.fill:hover { filter: brightness(1.08); }

/* -- PAGE -------------------------------------------------- */
.page { max-width: 500px; margin: 0 auto; padding: 0 16px 80px; }

/* -- LOGO -------------------------------------------------- */
.logo-section { text-align: center; padding: 26px 0 18px; }
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 150px;
    font-size: 2.6rem;
    margin-bottom: 10px;
    animation: popIn .7s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes popIn {
  from { opacity:0; transform: scale(0.6); }
  to   { opacity:1; transform: scale(1); }
}
.logo-title { font-size: 1.95rem; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.logo-title .accent { color: var(--pink); }

/* -- PHOTOS GRID ------------------------------------------- */
.photos-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.photo-col { display: flex; flex-direction: column; gap: 6px; }
.photo-label { text-align: center; font-size: 0.88rem; font-weight: 800; color: var(--text-mid); }
.photo-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(155, 39, 175, 0.1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform .25s, box-shadow .25s;
    border: 2px solid rgb(221 195 169);
}
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(155,39,175,0.18); }
.photo-card input { display: none; }
.photo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 2px);
}
.photo-empty-icon { font-size: 2rem; opacity: 0.35; }
.photo-empty-text { font-size: 0.75rem; color: var(--text-light); font-weight: 600; text-align: center; padding: 0 10px; line-height: 1.4; }
.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(160, 60, 200, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity .25s;
    border-radius: calc(var(--radius-card) - 2px);
}
.photo-card.has-image:hover .photo-overlay { opacity: 1; }
.photo-overlay span { color: var(--white); font-size: 0.8rem; font-weight: 800; }

/* -- ACTIONS ROW ------------------------------------------- */
.actions-row {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.action-side {
    background: rgb(204 111 223);
    border: 2px solid rgba(180, 100, 220, 0.98);
    border-radius: 20px;
    height: 100px;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 6px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background .2s, transform .2s;
    text-decoration: none;
    margin-left: 8px;
}
.action-side:hover { background: rgba(180,100,220,0.22); transform: scale(1.03); }
.action-side-icon { font-size: 1.5rem; }
.action-side-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
}
.action-main {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink2) 50%, #FF9800 100%);
    border: none;
    border-radius: var(--radius-btn);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.45);
    transition: filter .2s, transform .2s, box-shadow .2s;
    letter-spacing: 0.02em;
}
.action-main:hover:not(:disabled) { filter: brightness(1.08); transform: scale(1.03); box-shadow: 0 12px 32px rgba(233,30,140,0.55); }
.action-main:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* -- FILTERS ----------------------------------------------- */
.filter-section { margin-bottom: 22px; }
.filter-title { text-align: center; font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
    zoom: 0.8;
}
.chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid rgba(200, 150, 240, 0.35);
    border-radius: 16px;
    padding: 12px 10px;
    width: 100px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-mid);
    transition: all .2s;
    user-select: none;
    text-align: center;
}
.chip:hover { background: rgba(233,30,140,0.08); border-color: rgba(233,30,140,0.45); }
.chip.active {
    background: #fff;
    color: #673AB7;
    border: 2px solid #9C27B0;
    border-radius: var(--radius-btn);
    background-image: linear-gradient(175deg, #ffffff, #c2e4ff, #ffffff);
}
.chip-icon {
    font-size: 3.2rem;
    opacity: 1;
    filter: invert(1) brightness(0.3) sepia(1) hue-rotate(180deg) saturate(3);
}

/* -- RESULT ------------------------------------------------ */
.result-section { }

/* шапка блока результата с кнопками */
.result-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  min-height: 32px;
}
.result-header-title {
  font-size: 0.92rem; font-weight: 800; color: var(--text-mid);
}
.result-header-actions {
  display: flex; gap: 8px;
}
.result-action-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(180,100,220,0.13);
  border: 1.5px solid rgba(180,100,220,0.28);
  border-radius: 30px;
  padding: 6px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  color: var(--purple2);
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.result-action-btn:hover { background: rgba(180,100,220,0.22); transform: scale(1.04); }
.result-action-btn.hidden { display: none; }

.result-box {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(200,150,240,0.25);
  box-shadow: 0 8px 28px rgba(155,39,175,0.1);
  overflow: hidden; position: relative;
}
.result-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  padding: 50px 30px; text-align: center;
}
.result-placeholder-icon { font-size: 3.2rem; opacity: 0.25; }
.result-placeholder-text { font-size: 0.88rem; color: var(--text-light); font-weight: 600; max-width: 220px; line-height: 1.6; }
.result-img { width: 100%; display: block; border-radius: calc(var(--radius-card) - 2px); }

/* -- LIGHTBOX ---------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,0,20,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 94vw; max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--white);
  cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* -- LOADING OVERLAY --------------------------------------- */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 0, 20, 0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.loading-overlay.active { opacity: 1; pointer-events: all; }

.loading-modal {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(155, 39, 175, 0.25);
  animation: modalPop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loading-emoji {
  font-size: 3.2rem;
  line-height: 1;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s ease, transform .35s ease;
}
.loading-emoji.fade-out {
  opacity: 0;
  transform: scale(0.6) rotate(-15deg);
}
.loading-emoji.fade-in {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.loading-text { font-size: 1.15rem; font-weight: 800; font-style: italic; color: var(--text); }
.loading-sub  { font-size: 0.8rem; color: var(--text-mid); font-weight: 600; letter-spacing: 0.04em; }
.dots { display: flex; gap: 7px; }
.dots span {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
  animation: bounce .9s ease-in-out infinite;
}
.dots span:nth-child(1) { background: var(--pink);   animation-delay: 0s; }
.dots span:nth-child(2) { background: var(--purple);  animation-delay: .15s; }
.dots span:nth-child(3) { background: var(--gold);    animation-delay: .3s; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  40%      { transform: translateY(-12px); }
}

/* -- TOAST ------------------------------------------------- */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(200,30,100,0.92);
  backdrop-filter: blur(8px);
  color: var(--white); font-family: 'Nunito', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  padding: 12px 24px; border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 300; opacity: 0;
  transition: all .35s cubic-bezier(.34,1.3,.64,1);
  white-space: nowrap; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -- MODALS ------------------------------------------------ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,0,20,0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform .25s;
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-title {
  font-size: 1.3rem; font-weight: 900; color: var(--text);
  text-align: center; margin-bottom: 20px;
}
.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(200,150,240,0.35);
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color .2s;
}
.modal-input:focus { border-color: var(--pink); }
.modal-input::placeholder { color: var(--text-light); }
.modal-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(200,150,240,0.35);
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
  background: var(--white);
  color: var(--text);
}
.modal-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  margin-top: 4px;
}
.modal-btn:hover { filter: brightness(1.08); transform: scale(1.02); }
.modal-btn.primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
}
.modal-btn.secondary {
  background: rgba(180,100,220,0.13);
  color: var(--purple2);
  border: 1.5px solid rgba(180,100,220,0.28);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-light);
  cursor: pointer;
}
.modal-links {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
}
.modal-links a {
  color: var(--pink);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.modal-error {
  color: #e91e63;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  min-height: 20px;
}

/* -- HISTORY ----------------------------------------------- */
.history-section { margin-top: 28px; }
.history-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  margin-bottom: 12px; text-align: center;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.history-item {
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(200,150,240,0.2);
}
.history-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.history-item .status-badge {
  position: absolute; bottom: 6px; right: 6px;
  font-size: 0.65rem; font-weight: 800;
  padding: 3px 8px; border-radius: 10px;
  background: rgba(255,255,255,0.9);
}
.status-queued { color: var(--gold); }
.status-succeeded { color: #4CAF50; }
.status-failed { color: #f44336; }

/* -- Upload Hint ------------------------------------------- */
.upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}

.upload-hint .photo-empty-icon {
  font-size: 2.5rem;
  opacity: 0.35;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-hint .photo-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.upload-hint .photo-empty-icon img {
    width: 5.0rem;
    height: 5.0rem;
    object-fit: contain;
    position: static;
    border-radius: 0%;
    filter: invert(1) brightness(0.3) sepia(1) hue-rotate(180deg) saturate(3);
}

.upload-hint .photo-empty-text {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
    padding: 0 10px 45px;
    line-height: 1.4;
    position: static;
    margin-top: -30px;
}

/* -- USER INFO ------------------------------------------- */
.user-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-mid);
  margin-right: 8px;
}
/* -- TOKEN PACKAGES MODAL -------------------------------- */
.token-modal-box { max-width: 420px; padding: 28px 20px; }
.token-modal-title { font-size: 1.4rem; margin-bottom: 6px; }
.token-modal-subtitle { text-align: center; font-size: 0.85rem; color: var(--text-light); font-weight: 600; margin-bottom: 20px; }
.token-packages-grid { display: flex; flex-direction: column; gap: 12px; }
.token-package-card { position: relative; background: #ffffff; border: 2px solid rgba(200,150,240,0.25); border-radius: 18px; padding: 18px 16px; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.token-package-card:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 8px 24px rgba(233,30,140,0.15); border-color: rgba(233,30,140,0.4); }
.token-package-card.welcome { background: linear-gradient(135deg,#FF9800 0%,#FF5722 30%,#E91E8C 70%,#9B27AF 100%); border: none; box-shadow: 0 6px 20px rgba(255,87,34,0.35); color: #fff; }
.token-package-card.welcome:hover { box-shadow: 0 10px 30px rgba(255,87,34,0.5); transform: translateY(-3px) scale(1.02); }
.token-package-card.welcome .token-package-title, .token-package-card.welcome .token-package-tokens, .token-package-card.welcome .token-package-generations, .token-package-card.welcome .token-package-price { color: #fff; }
.token-package-card.welcome .token-package-btn { background: #fff; color: #FF5722; }
.token-package-card.welcome .token-package-btn:hover { background: #fff8f0; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.token-package-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#FFD700 0%,#FF9800 100%); color: #5a2d00; font-size: 0.68rem; font-weight: 900; padding: 5px 14px; border-radius: 20px; white-space: nowrap; box-shadow: 0 3px 12px rgba(255,152,0,0.4); letter-spacing: 0.03em; text-transform: uppercase; }
.token-package-badge .fire-emoji { font-size: 0.9rem; margin-right: 3px; }
.token-package-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.token-package-title { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.token-package-tokens { font-size: 0.82rem; font-weight: 700; color: var(--text-mid); }
.token-package-generations { font-size: 0.75rem; font-weight: 600; color: var(--text-light); margin-top: 2px; }
.token-package-card.welcome .token-package-generations { color: rgba(255,255,255,0.85); }
.token-package-price { font-size: 1.2rem; font-weight: 900; color: var(--pink); white-space: nowrap; }
.token-package-btn { background: linear-gradient(135deg,var(--pink) 0%,var(--purple) 100%); color: #fff; border: none; border-radius: 14px; padding: 10px 18px; font-family: 'Nunito', sans-serif; font-size: 0.9rem; font-weight: 800; cursor: pointer; transition: all .2s; white-space: nowrap; }
.token-package-btn:hover { filter: brightness(1.1); transform: scale(1.05); }
.token-loading { text-align: center; padding: 30px; color: var(--text-light); font-weight: 700; }
.token-error { text-align: center; padding: 20px; color: #e91e63; font-weight: 700; font-size: 0.9rem; }
/* -- SHARE MODAL ------------------------------------------- */
.share-modal-box {
  max-width: 400px;
  padding: 28px 24px;
  background: #ffffff;
}
.share-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}
.share-link-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #f5f5f5;
  border-radius: 14px;
  padding: 4px;
  border: 2px solid rgba(200,150,240,0.2);
}
.share-link-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: var(--text-mid);
  outline: none;
}
.share-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  white-space: nowrap;
}
.share-copy-btn:hover { filter: brightness(1.1); transform: scale(1.03); }
.share-copy-btn.copied { background: #4CAF50; }

.share-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.share-social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  background: #f0f0f0;
}
.share-social-btn:hover { transform: translateY(-3px) scale(1.08); }
.share-social-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.share-social-btn.vk  { background: #4C75A3; }
.share-social-btn.tg  { background: #0088cc; }
.share-social-btn.ok  { background: #EE8208; }
.share-social-btn.tw  { background: #000000; }
/* -- HISTORY EMPTY STATE ----------------------------------- */
.history-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 700;
}
/* -- FEEDBACK BUTTON --------------------------------------- */
.feedback-btn {
  background: #ffffff;
  border: 2px solid rgba(180, 100, 220, 0.35);
  color: var(--purple2);
  padding: 7px 10px;
  min-width: 40px;
  justify-content: center;
}
.feedback-btn:hover {
  background: rgba(180,100,220,0.15);
  border-color: rgba(233,30,140,0.5);
  transform: scale(1.05);
}
.feedback-btn img {
  width: 1.3em !important;
  height: 1.3em !important;
}

/* -- FEEDBACK MODAL ---------------------------------------- */
.feedback-modal-box { max-width: 420px; }
.modal-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 2px solid rgba(200,150,240,0.35);
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color .2s;
  margin-bottom: 6px;
}
.modal-textarea:focus { border-color: var(--pink); }
.modal-textarea::placeholder { color: var(--text-light); }
.feedback-counter {
  text-align: right;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 14px;
}
.feedback-counter.near-limit { color: var(--pink); }
.feedback-counter.over-limit { color: #e91e63; }