/* ======================================================================
   ICE AUTH + PROFILE UI — COMBAT CSS (refactor, no duplicates)
   Works for: auth button + dropdown + profile dashboard + edit page + modal
   Put LAST after theme styles.
====================================================================== */

/* =========================
   1) VARIABLES
========================= */
:root{
  --ice-color-white: rgba(255,255,255,.92);
  --ice-color-white-secondary: rgba(255,255,255,.82);
  --ice-color-white-muted: rgba(255,255,255,.58);

  --ice-color-accent: rgba(127,230,255,.95);
  --ice-color-danger: #ff6b6b;
  --ice-color-success: #2ecc71;
  --ice-color-error: #e74c3c;

  --ice-surface-0: rgba(255,255,255,.04);
  --ice-surface-1: rgba(255,255,255,.06);
  --ice-surface-2: rgba(255,255,255,.08);
  --ice-surface-3: rgba(255,255,255,.10);

  --ice-bg-dropdown: rgba(58, 65, 78, 0.96);
  --ice-bg-dropdown-item: rgba(255,255,255,.07);
  --ice-bg-dropdown-hover: rgba(255,255,255,.10);

  --ice-bg-modal: rgba(20,24,32,.92);

  --ice-border: rgba(255,255,255,.14);
  --ice-border-soft: rgba(255,255,255,.10);
  --ice-border-avatar: rgba(255,255,255,.18);

  --ice-shadow-heavy: 0 18px 55px rgba(0,0,0,.45);
  --ice-shadow-medium: 0 12px 34px rgba(0,0,0,.22);
  --ice-shadow-light: 0 10px 28px rgba(0,0,0,.18);

  --ice-radius-sm: 10px;
  --ice-radius-md: 12px;
  --ice-radius-lg: 14px;
  --ice-radius-xl: 16px;
  --ice-radius-2xl: 18px;
  --ice-radius-full: 999px;

  --ice-z-modal: 9999;
  --ice-z-dropdown: 999999;
}

/* =========================
   2) RESET + SAFETY
========================= */
.icep, .icep * ,
.ice-auth-wrap, .ice-auth-wrap *,
.icep-modal, .icep-modal *{
  box-sizing: border-box;
}

.icep-btn,
.ice-auth-btn,
.ice-auth-dd__item,
.ice-login-close,
.ice-login-submit,
.icep-modal__close{
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

header,
.ct-header,
.ct-header [class*="row"],
.ct-header [class*="container"],
.ice-auth-wrap,
.ice-auth-dd{
  overflow: visible !important;
}

/* helper: focus */
.icep :where(a,button,[role="button"],input,textarea,select):focus-visible{
  outline: 2px solid var(--ice-color-accent);
  outline-offset: 2px;
}

/* =========================
   3) AUTH BUTTON (optional)
========================= */
._loginBtn_xflx5_202{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;

  font-size: 14px;
  font-weight: 750;
  color: var(--ice-color-white);

  background: var(--ice-surface-2);
  border: 1px solid var(--ice-border);
  border-radius: var(--ice-radius-sm);

  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;

  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
._loginBtn_xflx5_202:hover{
  background: var(--ice-surface-3);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

/* =========================
   4) AUTH DROPDOWN
========================= */
.ice-auth-wrap{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align: middle;
}

.ice-auth-dd{
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);

  z-index: var(--ice-z-dropdown);
  display: none;

  min-width: 260px;
  max-width: min(340px, calc(100vw - 32px));

  background: var(--ice-bg-dropdown);
  border: 1px solid var(--ice-border);
  border-radius: var(--ice-radius-lg);
  padding: 10px;

  box-shadow: var(--ice-shadow-heavy);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  white-space: normal;
  animation: iceDropdownFadeIn .16s ease;
}
@keyframes iceDropdownFadeIn{
  from{ opacity:0; transform: translateX(-50%) translateY(-10px); }
  to{ opacity:1; transform: translateX(-50%) translateY(0); }
}
.ice-auth-wrap.is-open .ice-auth-dd{ display:block; }

.ice-auth-dd::before{
  content:"";
  position:absolute;
  left:50%;
  top:-6px;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--ice-bg-dropdown);
  border-left: 1px solid var(--ice-border);
  border-top: 1px solid var(--ice-border);
}

.ice-auth-dd__hello{
  display:block;
  padding: 10px 12px;
  margin: 0 0 8px;

  background: var(--ice-bg-dropdown-item);
  border: 1px solid var(--ice-border);
  border-radius: var(--ice-radius-md);

  color:#fff;
  font-weight: 850;
  text-align:center;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.4;
}

.ice-auth-dd__item,
.ice-auth-dd a.ice-auth-dd__item{
  width:100%;
  display:flex;
  align-items:center;
  padding: 11px 12px;

  border-radius: var(--ice-radius-md);
  text-decoration:none;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ice-color-white);

  background: transparent;
  border: 1px solid transparent;

  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ice-auth-dd__item:not(:last-child){ margin-bottom: 4px; }
.ice-auth-dd__item:hover{
  background: var(--ice-bg-dropdown-hover);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.ice-auth-dd__item--danger{ color: var(--ice-color-danger); }
.ice-auth-dd__item--danger:hover{
  background: rgba(255,80,80,.12);
  border-color: rgba(255,80,80,.22);
}

/* =========================
   5) PROFILE LAYOUT (all pages)
========================= */
.icep{
  padding: 24px 0;
  min-height: calc(100vh - 100px);
}

.icep__container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px;
}

.icep-title{
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 950;
  color: #fff;
  line-height: 1.15;
}
.icep-muted{ color: var(--ice-color-white-secondary); opacity: .88; }

.icep-card{
  background: var(--ice-surface-1);
  border: 1px solid var(--ice-border-soft);
  border-radius: var(--ice-radius-2xl);
  padding: 18px;
  box-shadow: var(--ice-shadow-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#fff;
  min-width: 0;
  width: 100%;
}

/* grid: dashboard pages */
.icep-grid{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}

/* equal height variant */
.icep-grid--equal{ align-items: stretch; }
.icep-dashboard--stretch{ height: 100%; }
.icep-dashboard__inner{
  min-height: 100%;
  height: 100%;
  display:flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================
   6) DASHBOARD LEFT
========================= */
.icep-dash-head{ margin-bottom: 10px; }
.icep-dash-hello{
  font-weight: 950;
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}
.icep-dash-hello span{ color: var(--ice-color-accent); }

.icep-stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.icep-stat-card{
  background: var(--ice-surface-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ice-radius-xl);
  padding: 14px;
  box-shadow: var(--ice-shadow-light);
}
.icep-stat-num{
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
  color: #fff;
}
.icep-stat-label{
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ice-color-white-secondary);
  opacity: .95;
}

/* separator */
.icep-sep{
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  margin: 16px 0 14px;
}

/* CTA */
.icep-cta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;

  padding: 14px;
  border-radius: var(--ice-radius-xl);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.icep-cta__title{
  font-size: 16px;
  font-weight: 950;
  color: #fff;
  margin-bottom: 6px;
}
.icep-cta__desc{ font-size: 13px; line-height: 1.4; }

/* Telegram banner */
.icep-tg-banner{
  margin-top: 2px;
  padding: 14px;
  border-radius: var(--ice-radius-xl);

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;

  border: 1px solid rgba(127,230,255,.18);
  background: linear-gradient(135deg, rgba(127,230,255,.14), rgba(255,255,255,.05));
}
.icep-tg-banner__left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.icep-tg-banner__ico{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(127,230,255,.25);
  background: rgba(127,230,255,.10);
}
.icep-tg-banner__title{
  font-weight: 950;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
}
.icep-tg-banner__desc{
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ice-color-white-secondary);
  opacity: .95;
}

/* =========================
   7) BUTTONS
========================= */
.icep-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 42px;
  padding: 0 16px;

  border-radius: var(--ice-radius-md);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;

  font-weight: 950;
  font-size: 13.5px;
  white-space: nowrap;
  min-width: max-content;

  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.icep-btn:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
  transform: translateY(-1px);
}
.icep-btn--primary{
  background: rgba(127,230,255,.22);
  border-color: rgba(127,230,255,.30);
}
.icep-btn--primary:hover{
  background: rgba(127,230,255,.28);
  border-color: rgba(127,230,255,.35);
}
.icep-btn--danger{
  background: rgba(255,80,80,.14);
  border-color: rgba(255,80,80,.26);
  color: #ffb6b6;
}
.icep-btn--danger:hover{
  background: rgba(255,80,80,.20);
  border-color: rgba(255,80,80,.32);
}
.icep-btn--block{
  width: 100%;
  min-width: 0;
  justify-content: center;
}

/* =========================
   8) RIGHT PANEL
========================= */
.icep-side{
  display:flex;
  flex-direction: column;
  height: 100%;
}

/* centered header “Твой профиль” */
.icep-side__nick{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ice-radius-xl);
  padding: 14px;
  box-shadow: var(--ice-shadow-light);
  text-align: center;
  margin-bottom: 14px;
}
.icep-side__nick-label{
  display:block;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(255,255,255,.72);
  margin: 0 0 6px;
}
.icep-side__name{
  display:block;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
  color: #fff;
  word-break: break-word;
}

/* avatar */
.icep-avatar-box{
  display:grid;
  justify-items:center;
  gap: 10px;
  text-align:center;
}
.icep-avatar-box img{
  width: 92px;
  height: 92px;
  border-radius: var(--ice-radius-full);
  object-fit: cover;
  border: 1px solid var(--ice-border-avatar);
  box-shadow: var(--ice-shadow-light);
  display:block;
}

/* email + role */
.icep-side__meta{
  width: 100%;
  display:grid;
  gap: 8px;
  justify-items: center;
  margin-top: 6px;
}
.icep-side__email{
  font-size: 13px;
  font-weight: 850;
  color: rgba(255,255,255,.86);
  word-break: break-word;
}

/* role badge */
.icep-role-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: var(--ice-radius-full);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.icep-role-badge.role-creator{
  background: rgba(155, 89, 182, .22);
  border-color: rgba(155, 89, 182, .35);
  color: #ead8ff;
}
.icep-role-badge.role-admin{
  background: rgba(255, 80, 80, .18);
  border-color: rgba(255, 80, 80, .32);
  color: #ffd1d1;
}
.icep-role-badge.role-mod{
  background: rgba(52, 152, 219, .20);
  border-color: rgba(52, 152, 219, .34);
  color: #d7f0ff;
}
.icep-role-badge.role-sub{
  background: rgba(46, 204, 113, .16);
  border-color: rgba(46, 204, 113, .28);
  color: #caffdf;
}
.icep-role-badge.role-author{
  background: rgba(241, 196, 15, .18);
  border-color: rgba(241, 196, 15, .32);
  color: #fff2b8;
}
.icep-role-badge.role-contr{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.90);
}

/* socials title */
.icep-side__socials-title{
  margin: 2px 0 10px;
  font-size: 12.5px;
  font-weight: 950;
  color: rgba(255,255,255,.86);
  text-align: center;
}

/* socials: ICON BUTTONS ONLY */
.icep-socials{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2px 0 6px;
}
.icep-social{
  width: 42px;
  height: 42px;
  border-radius: var(--ice-radius-full);
  display:inline-flex;
  align-items:center;
  justify-content:center;

  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);

  text-decoration: none;
  color: rgba(255,255,255,.92);

  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.icep-social:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

/* hide any text labels inside icon buttons */
.icep-social > span:not(.icep-social__ico){ display:none !important; }

/* icon */
.icep-social__ico{
  width: 18px;
  height: 18px;
  display:inline-flex;
  opacity: .95;
}
.icep-social__ico svg{ display:block; }

/* Discord tile (div) */
.icep-social.icep-social--text{ cursor: default; }

/* Tooltip for Discord (requires data-discord attr on element) */
.icep-social[data-discord]{
  position: relative;
}
.icep-social[data-discord]::after{
  content: attr(data-discord);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;

  font-size: 12px;
  font-weight: 850;
  color: #fff;

  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  padding: 7px 10px;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,.25);

  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.icep-social[data-discord]:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* menu */
.icep-menu{ display:grid; gap: 8px; }
.icep-menu__item{
  display:flex;
  align-items:center;
  justify-content: space-between;

  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);

  color: var(--ice-color-white);
  text-decoration:none;
  font-weight: 950;
  font-size: 13.5px;

  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.icep-menu__item:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

/* logout at bottom */
.icep-side__footer{
  margin-top: auto;
  padding-top: 6px;
}

/* =========================
   9) NEWS (list + pager)
========================= */
.icep-news{ margin-top: 6px; }
.icep-news__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.icep-news__title{
  font-size: 16px;
  font-weight: 950;
  color: #fff;
}
.icep-news__list{ display:grid; gap: 10px; }
.icep-news__item{
  border-radius: var(--ice-radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  overflow:hidden;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}
.icep-news__item:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}
.icep-news__link{
  display:block;
  padding: 12px;
  text-decoration:none;
  color: inherit;
}
.icep-news__meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.icep-news__date{
  font-size: 12px;
  font-weight: 850;
  color: var(--ice-color-white-secondary);
  opacity: .95;
}
.icep-news__name{
  font-size: 14px;
  font-weight: 950;
  color: #fff;
  line-height: 1.25;
}
.icep-news__excerpt{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ice-color-white-secondary);
  opacity: .95;
}

/* pager */
.icep-pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  margin-top: 12px;
  user-select: none;
}
.icep-pager__btn,
.icep-pager__num{
  height: 36px;
  min-width: 36px;
  padding: 0 10px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);

  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 950;
  font-size: 13px;

  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.icep-pager__btn:hover,
.icep-pager__num:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.icep-pager__num.is-active{
  background: rgba(127,230,255,.22);
  border-color: rgba(127,230,255,.30);
}
.icep-pager__btn.is-disabled{
  opacity: .45;
  pointer-events: none;
}
.icep-pager__dots{
  opacity: .65;
  color: var(--ice-color-white-secondary);
}

/* =========================
   10) MODAL (Creator request)
========================= */
.icep-modal{
  position: fixed;
  inset: 0;
  z-index: var(--ice-z-modal);
  display: none; /* open with .is-open */
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.icep-modal.is-open{
  display:flex;
  align-items:center;
  justify-content:center;
}
.icep-modal__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.icep-modal__box{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;

  background: var(--ice-bg-modal);
  border: 1px solid var(--ice-border);
  border-radius: var(--ice-radius-xl);
  box-shadow: var(--ice-shadow-heavy);

  padding: 18px;
  color: #fff;
}
.icep-modal__title{
  font-weight: 950;
  font-size: 18px;
  margin: 0 40px 12px 0;
}
.icep-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--ice-radius-full);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  color: #fff;
  opacity: .78;
  background: transparent;
  border: 1px solid transparent;
  transition: opacity .16s ease, background-color .16s ease, border-color .16s ease;
}
.icep-modal__close:hover{
  opacity: 1;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.12);
}

/* CF7 inside modal */
.icep-modal .wpcf7 form{ margin: 0; }
.icep-modal .wpcf7 input,
.icep-modal .wpcf7 textarea,
.icep-modal .wpcf7 select{
  width: 100%;
  border-radius: var(--ice-radius-sm);
  border: 1px solid var(--ice-border);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 11px 12px;
}
.icep-modal .wpcf7 input:focus,
.icep-modal .wpcf7 textarea:focus,
.icep-modal .wpcf7 select:focus{
  outline: none;
  border-color: var(--ice-color-accent);
  box-shadow: 0 0 0 3px rgba(127,230,255,.10);
}
.icep-modal .wpcf7 input[type="submit"]{
  margin-top: 10px;
  cursor: pointer;
  font-weight: 950;
  background: rgba(127,230,255,.22);
  border-color: rgba(127,230,255,.30);
}
.icep-modal .wpcf7 input[type="submit"]:hover{
  background: rgba(127,230,255,.28);
  border-color: rgba(127,230,255,.35);
}

/* =========================
   11) RESPONSIVE
========================= */
@media (max-width: 900px){
  .icep-grid{ grid-template-columns: 1fr; }
  .icep-stats{ grid-template-columns: 1fr; }

  .icep-cta{ flex-direction: column; align-items: flex-start; }
  .icep-cta .icep-btn{ width: 100%; }

  .icep-tg-banner{ flex-direction: column; align-items: flex-start; }
  .icep-tg-banner .icep-btn{ width: 100%; }

  /* dropdown -> bottom sheet */
  .ice-auth-dd{
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
    max-width: none;
    width: calc(100% - 32px);
  }
  .ice-auth-dd::before{ display:none; }
}

@media (max-width: 768px){
  .icep-title{ font-size: 20px; }
  .icep-card{ padding: 14px; }
  .icep-btn{ height: 40px; padding: 0 14px; font-size: 13px; }
}

@media (max-width: 480px){
  .icep__container{ padding: 0 12px; }
  .icep-card{ border-radius: 14px; }
  .icep-btn{ width: 100%; justify-content: center; }
}

/* =========================
   12) ACCESSIBILITY
========================= */
@media (prefers-reduced-motion: reduce){
  ._loginBtn_xflx5_202,
  .ice-auth-dd,
  .icep-btn,
  .ice-auth-dd__item,
  .icep-menu__item,
  .icep-social,
  .icep-modal__close{
    transition: none !important;
    animation: none !important;
  }
  ._loginBtn_xflx5_202:hover,
  .ice-auth-dd__item:hover,
  .icep-btn:hover,
  .icep-menu__item:hover,
  .icep-social:hover{
    transform: none !important;
  }
}

@media (prefers-contrast: high){
  .ice-auth-dd,
  .icep-card,
  .icep-stat-card,
  .icep-side__nick{
    border-width: 2px;
  }
  ._loginBtn_xflx5_202{ border-width: 2px; }
}
/* ===== Header avatar: force perfect circle (combat) ===== */
.ice-auth-avatar{
  width: 28px;              /* подгони под свой размер */
  height: 28px;
  border-radius: 999px !important;
  overflow: hidden !important;
  flex: 0 0 28px;
}

.ice-auth-avatar img{
  width: 100% !important;
  height: 100% !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: block !important;
}
/* ======================================================================
   ICE AUTH DROPDOWN — combat fixes (button + dropdown alignment)
   PUT THIS AT THE VERY END
====================================================================== */

/* 1) Button layout: avatar always round + text centered */
.ice-auth-wrap [data-ice-auth-btn],
.ice-auth-wrap ._loginBtn_xflx5_202{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  line-height: 1 !important;
}

.ice-auth-wrap .ice-auth-avatar{
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  flex: 0 0 28px !important;
}

.ice-auth-wrap .ice-auth-avatar img{
  width: 100% !important;
  height: 100% !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: block !important;
}

/* 2) Dropdown must be anchored to the button center (no weird offset) */
.ice-auth-wrap{
  position: relative !important;
}

/* Вместо translate(-50%) используем "центрируем по кнопке" через left/right */
.ice-auth-wrap .ice-auth-dd,
.ice-auth-wrap [data-ice-auth-dd]{
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: calc(100% + 10px) !important;

  min-width: 280px !important;
  max-width: min(360px, calc(100vw - 24px)) !important;

  border-radius: 16px !important;
  padding: 12px !important;
}

/* 3) Arrow perfectly centered */
.ice-auth-wrap .ice-auth-dd::before,
.ice-auth-wrap [data-ice-auth-dd]::before{
  left: 50% !important;
  transform: translateX(-50%) rotate(45deg) !important;
  top: -7px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 2px;
}

/* 4) “Привет” block nicer + no huge pill */
.ice-auth-wrap .ice-auth-dd__hello{
  border-radius: 14px !important;
  padding: 12px 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  margin: 0 0 10px 0 !important;
}

/* 5) Menu items: icon + text aligned, no underline, same height */
.ice-auth-wrap .ice-auth-dd__item,
.ice-auth-wrap .ice-auth-dd a.ice-auth-dd__item{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 12px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

/* If you use SVG icons inside items */
.ice-auth-wrap .ice-auth-dd__item svg{
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  opacity: .92;
}

/* 6) Make the dropdown feel less “empty” + tighter spacing */
.ice-auth-wrap .ice-auth-dd__item:not(:last-child){
  margin-bottom: 6px !important;
}

/* 7) Hover state cleaner */
.ice-auth-wrap .ice-auth-dd__item:hover,
.ice-auth-wrap .ice-auth-dd__item:focus{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* 8) Mobile: dropdown becomes bottom sheet (already had it, but enforce) */
@media (max-width: 900px){
  .ice-auth-wrap .ice-auth-dd,
  .ice-auth-wrap [data-ice-auth-dd]{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    transform: none !important;
    max-width: none !important;
    width: auto !important;
  }
  .ice-auth-wrap .ice-auth-dd::before,
  .ice-auth-wrap [data-ice-auth-dd]::before{
    display: none !important;
  }
}
/* ======================================================================
   ICE PROFILE EDIT — right panel normalize (works with new aside markup)
   PUT THIS AT THE VERY END
====================================================================== */

.icep-side{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.icep-side__nick-top{
  display:flex;
  justify-content:center;
  margin-bottom: 10px;
}

.icep-side__nick{
  text-align:center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.icep-side__name{
  margin: 0;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
  color: #fff;
  word-break: break-word;
}

.icep-avatar-box img{
  width: 92px !important;
  height: 92px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display:block !important;
}

.icep-side__meta{
  display:grid;
  justify-items:center;
  gap: 8px;
}

.icep-side__email{
  text-align:center;
  word-break: break-word;
}
/* ======================================================================
   ICE PROFILE EDIT — LEFT FORM (icep-edit) polish
   Put at the VERY END
====================================================================== */

/* левый блок формы */
.icep-edit{
  padding: 18px;
}

/* шапка карточки */
.icep-card__head{
  margin-bottom: 14px;
}
.icep-h2{
  margin: 0;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -.2px;
}
@media (max-width: 768px){
  .icep-h2{ font-size: 26px; }
}

/* алерты */
.icep-alert{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.35;
  white-space: pre-line;
}
.icep-alert--ok{
  border-color: rgba(46,204,113,.28);
  background: rgba(18,40,28,.55);
  color: #c9f7da;
}
.icep-alert--error{
  border-color: rgba(255,80,80,.28);
  background: rgba(60,20,22,.55);
  color: #ffd1d1;
}

/* форма */
.icep-form{
  display: grid;
  gap: 12px;
}

/* поле */
.icep-field{
  display: grid;
  gap: 8px;
}

/* label */
.icep-label{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(255,255,255,.90);
}

/* подсказка под полем */
.icep-help{
  margin-top: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255,255,255,.72);
}

/* input/textarea — единый стиль */
.icep-input,
.icep-textarea{
  width: 100% !important;
  appearance: none;
  -webkit-appearance: none;

  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.94);

  font-weight: 850;
  font-size: 14px;
  line-height: 1.2;

  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.icep-textarea{
  border-radius: 22px;         /* как на скрине, большой радиус */
  min-height: 140px;
  resize: vertical;
}

/* placeholder */
.icep-input::placeholder,
.icep-textarea::placeholder{
  color: rgba(255,255,255,.55);
  font-weight: 750;
}

/* focus */
.icep-input:focus,
.icep-textarea:focus{
  outline: none;
  border-color: rgba(127,230,255,.40);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(127,230,255,.12);
  transform: translateY(-1px);
}

/* убираем странные стили темы (если есть) */
.icep-input,
.icep-textarea{
  -webkit-text-fill-color: rgba(255,255,255,.94);
}

/* заголовок H3 */
.icep-h3{
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 950;
  color: #fff;
  letter-spacing: -.15px;
}
@media (max-width: 768px){
  .icep-h3{ font-size: 22px; }
}

/* разделитель внутри формы */
.icep-edit .icep-sep{
  margin: 12px 0 8px !important;
}

/* кнопка сохранить — слева как у тебя, но красивее */
.icep-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.icep-edit .icep-actions .icep-btn{
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  min-width: 220px;
}
@media (max-width: 480px){
  .icep-edit .icep-actions .icep-btn{
    width: 100%;
    min-width: 0;
  }
}

/* чуть более “карточный” фон у левой формы */
.icep-edit{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
}

/* мелкая типографика внутри левого блока */
.icep-edit p,
.icep-edit small{
  color: rgba(255,255,255,.80);
}

/* мобильный ритм */
@media (max-width: 768px){
  .icep-edit{ padding: 14px; }
  .icep-form{ gap: 10px; }
  .icep-input, .icep-textarea{ padding: 11px 12px; }
}
