/* ═══════════════════════════════════════
   ЛИЧНЫЙ КАБИНЕТ
   ═══════════════════════════════════════ */

.lk-main {
  padding: 40px 0 0;
}

/* ── PROFILE CARD ── */
.lk-profile {
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xl);
  padding: 28px 28px 0;
  margin-bottom: 24px;
  transition: background 0.3s, border-color 0.3s;
  overflow: hidden;
}

.lk-profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.lk-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(139, 93, 246, 0.18);
  color: var(--purple);
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  overflow: visible;
}
.lk-avatar:hover { background: rgba(139, 93, 246, 0.28); }
.lk-avatar-initials {
  position: relative;
  z-index: 0;
}

.lk-avatar img {
	width: 75px;
    height: 75px;
    border-radius: 60%;
    background: var(--white-14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    flex-shrink: 0;
    transition: background 0.3s;
}

.lk-avatar-upload {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
.lk-avatar:hover .lk-avatar-upload { opacity: 1; }

.lk-avatar-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--bg-card);
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.lk-avatar:hover .lk-avatar-badge { background: #7c3aed; transform: scale(1.12); }

.lk-profile-meta {
  flex: 1;
  min-width: 0;
}
.lk-name {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px;
  transition: color 0.3s;
}
.lk-since {
  font-size: 13px;
  color: var(--white-40);
  transition: color 0.3s;
}

.lk-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lk-edit-icon-btn {
  background: none;
  border: none;
  color: var(--white-30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px;
  transition: color 0.15s;
}
.lk-edit-icon-btn:hover { color: var(--white-70); }

.lk-balance-block {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.lk-balance-big {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  transition: color 0.3s;
}

.lk-replenish-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(178,239,44,0.1);
  border: 1px solid rgba(178,239,44,0.25);
  border-radius: var(--r-xxl);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.lk-replenish-pill:hover { background: rgba(178,239,44,0.18); }

.lk-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xxl);
  color: var(--white-70);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lk-edit-btn:hover {
  background: rgba(139, 93, 246, 0.14);
  border-color: rgba(139, 93, 246, 0.4);
  color: var(--purple);
}

/* ── STATS ── */
.lk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--white-14);
  margin: 0 -28px;
  transition: border-color 0.3s;
}
.lk-stat {
  padding: 20px 24px;
  text-align: center;
  position: relative;
}
.lk-stat + .lk-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--white-14);
}
.lk-stat-value {
  display: block;
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  transition: color 0.3s;
}
.lk-stat-label {
  display: block;
  font-size: 12px;
  color: var(--white-40);
  transition: color 0.3s;
}

/* ── TAB NAV ── */
.lk-tabs-wrap {
  position: relative;
  margin-bottom: 24px;
}

/* Fade hint — scrollable tabs */
.lk-tabs-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 1px;
  width: 52px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  transition: background 0.3s;
}

.lk-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--white-14);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: border-color 0.3s;
}
.lk-tabs::-webkit-scrollbar { display: none; }

.lk-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 11px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
}
.lk-tab:hover { color: var(--white-70); }
.lk-tab.is-active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}
.lk-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ── TAB PANELS ── */
/*.lk-panel { display: none; }*/
.lk-panel.is-active { display: block; }

/* ── PANEL HEAD (filter + add button) ── */
.lk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lk-filters {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lk-filters::-webkit-scrollbar { display: none; }
.lk-filter {
  padding: 7px 14px;
  border-radius: var(--r-xxl);
  border: 1px solid var(--white-14);
  background: none;
  color: var(--white-40);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lk-filter:hover { color: var(--white-70); border-color: var(--white-40); }
.lk-filter.is-active {
  background: rgba(139, 93, 246, 0.14);
  border-color: rgba(139, 93, 246, 0.4);
  color: var(--purple);
}

.lk-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--purple);
  border-radius: var(--r-xxl);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s, transform 0.1s;
}
.lk-add-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.lk-add-btn:active { transform: translateY(0); }

/* ── LISTING CARDS ── */
.lk-listings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lk-listing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 14px 16px;
  transition: background 0.3s, border-color 0.2s;
}
.lk-listing-card:hover { border-color: rgba(139,93,246,0.3); }

.lk-listing-img-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.lk-listing-img {
  width: 100%;
  height: 100%;
  border-radius: var(--r-m);
  object-fit: cover;
  display: block;
  background: var(--white-08);
}

/* Status badge overlaid on image — top-right corner */
.lk-status--img {
  position: absolute !important;
  top: 3px !important;
  left: 50% !important;
  right: unset !important;
  bottom: unset !important;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 7px;
  border: none !important;
  background: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lk-listing-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lk-listing-row1 {
  min-width: 0;
}

.lk-listing-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.lk-listing-title a {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.lk-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-xxl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.lk-status--active  { background: rgba(178,239,44,0.14);  color: var(--lime); }
.lk-status--paused  { background: rgba(254,224,109,0.14); color: var(--yellow); }
.lk-status--expired { background: rgba(255,255,255,0.08); color: var(--yellow); }

.lk-listing-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.lk-listing-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--white-40);
  transition: color 0.3s;
  flex-wrap: nowrap;
  overflow: hidden;
}
.lk-listing-meta span {
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
}

.lk-listing-meta-close {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
}
.lk-views-label::before { content: '\00a0'; }

.lk-listing-meta svg {
  vertical-align: -1px;
  margin-right: 3px;
  flex-shrink: 0;
}

/* ── LISTING ACTIONS ── */
.lk-listing-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.lk-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-m);
  background: var(--white-08);
  border: 1px solid var(--white-14);
  color: var(--white-40);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lk-action-btn:hover { background: rgba(139,93,246,0.14); border-color: rgba(139,93,246,0.3); color: var(--purple); }
.lk-action-btn--danger:hover { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #ef4444; }

/* ── CARD KEBAB MENU ── */
.lk-card-more-btn {
  display: none;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-m);
  color: var(--white-40);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.lk-card-more-btn:hover { background: var(--white-14); color: var(--white); }

.lk-card-more-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 172px;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 5px;
  display: none;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: background 0.3s, border-color 0.3s;
}
.lk-card-more-drop.is-open { display: flex; }

.lk-card-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.lk-card-more-item:hover { background: var(--white-08); }
.lk-card-more-item svg { flex-shrink: 0; opacity: 0.6; }
.lk-card-more-item--danger { color: #ef4444; }
.lk-card-more-item--danger svg { opacity: 1; }
.lk-card-more-item--danger:hover { background: rgba(239,68,68,0.1); }

@media (max-width: 860px) {
  .lk-card-more-btn { display: flex; }
}

/* Always show unlike button in favorites */
#tab-favorites .lk-fav-actions { display: flex !important; }

/* ── EMPTY STATE ── */
.lk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px;
  gap: 16px;
}
.lk-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--white-08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-40);
}
.lk-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  transition: color 0.3s;
}
.lk-empty-sub {
  font-size: 14px;
  color: var(--white-40);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
  transition: color 0.3s;
}

/* ── DIALOGS (MESSAGES) ── */
.lk-dialogs {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: background 0.3s;
  padding: 5px 6px;
}

.lk-dialog {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--white-08);
  cursor: pointer;
  transition: background 0.15s;
}
.lk-dialog:last-child { border-bottom: none; }
.lk-dialog:hover { background: var(--white-08); }

.lk-dialog-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.lk-dialog-avatar--purple { background: rgba(139,93,246,0.2); color: var(--purple); }
.lk-dialog-avatar--lime   { background: rgba(178,239,44,0.15); color: var(--lime); }
.lk-dialog-avatar--blue   { background: rgba(65,150,232,0.18); color: var(--blue); }
.lk-dialog-avatar--orange { background: rgba(217,140,53,0.18); color: #d98c35; }
.lk-dialog-avatar--gray   { background: var(--white-08); color: var(--white-40); }

.lk-dialog-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lk-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lk-dialog-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}
.lk-dialog--unread .lk-dialog-name { font-weight: 700; }
.lk-dialog-time {
  font-size: 12px;
  color: var(--white-40);
  flex-shrink: 0;
  transition: color 0.3s;
}

.lk-dialog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lk-dialog-msg {
  font-size: 13px;
  color: var(--white-40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}

.lk-dialog-msg a {
  font-size: 13px;
  color: var(--white-40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}
.lk-dialog--unread .lk-dialog-msg { color: var(--white-70); }
.lk-dialog-msg--mine { color: var(--white-40); }
.lk-dialog-msg--mine svg { color: var(--purple); flex-shrink: 0; }

.lk-dialog-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   MESSAGES — CHAT VIEW
   ══════════════════════════════════════════ */
.lk-msg-wrap {
  position: relative;
}

/* List view */
.lk-msg-list-view {
  transition: opacity 0.22s, transform 0.22s;
}
.lk-msg-wrap.chat-open .lk-msg-list-view {
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

/* Chat view */
.lk-msg-chat-view {
  /*display: none;*/
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  /*overflow: hidden;*/
  /*opacity: 0;*/
  transform: translateX(16px);
  transition: opacity 0.22s, transform 0.22s, background 0.3s, border-color 0.3s;
}
.lk-msg-wrap.chat-open .lk-msg-chat-view {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* Chat header */
.lk-msg-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--white-08);
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.lk-msg-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white-08);
  border: none;
  color: var(--white-70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.lk-msg-back-btn:hover { background: var(--white-14); color: var(--white); }

.lk-msg-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.lk-msg-chat-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lk-msg-chat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}
.lk-msg-chat-sub {
  font-size: 12px;
  color: var(--white-40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

/* Chat body — scrollable messages */
.lk-msg-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /*min-height: 320px;
  max-height: 420px;*/
  scrollbar-width: thin;
  scrollbar-color: var(--white-14) transparent;
}
.lk-msg-chat-body::-webkit-scrollbar { width: 4px; }
.lk-msg-chat-body::-webkit-scrollbar-thumb { background: var(--white-14); border-radius: 4px; }

/* Date separator */
.lk-msg-date-sep {
  text-align: center;
  font-size: 11px;
  color: var(--white-30);
  padding: 6px 0;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

/* Bubbles */
.lk-msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 72%;
  gap: 2px;
}
.lk-msg-bubble-wrap--me {
  align-self: flex-end;
  align-items: flex-end;
}
.lk-msg-bubble-wrap--them {
  align-self: flex-start;
  align-items: flex-start;
}

.lk-msg-bubble {
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.lk-msg-bubble--me {
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.lk-msg-bubble--them {
  background: var(--white-08);
  color: var(--white);
  border-bottom-left-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.lk-msg-bubble-time {
  font-size: 11px;
  color: var(--white-30);
  padding: 0 4px;
  transition: color 0.3s;
}

/* Chat footer — input + send */
.lk-msg-chat-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--white-08);
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.lk-msg-input {
  flex: 1;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xxl);
  padding: 10px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.3s, color 0.3s;
  min-width: 0;
  min-height: 50px;
}
.lk-msg-input::placeholder { color: var(--white-30); }
.lk-msg-input:focus { border-color: var(--purple); background: rgba(139,93,246,0.06); }

.lk-msg-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.15s, transform 0.1s;
}
.lk-msg-send-btn:hover { filter: brightness(1.12); }
.lk-msg-send-btn:active { transform: scale(0.93); }

/* ── WALLET TAB ── */
.lk-wallet-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.lk-balance-card {
  background: linear-gradient(135deg, rgba(139,93,246,0.22), rgba(139,93,246,0.08));
  border: 1px solid rgba(139,93,246,0.3);
  border-radius: var(--r-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lk-balance-label {
  font-size: 13px;
  color: var(--white-40);
  transition: color 0.3s;
}
.lk-balance-amount {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}
.lk-balance-currency {
  font-size: 18px;
  color: var(--white-40);
}
.lk-replenish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--purple);
  border: none;
  border-radius: var(--r-m);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: filter 0.15s, transform 0.1s;
  width: fit-content;
}
.lk-replenish-btn:hover { filter: brightness(1.1); }

.lk-spent-card {
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s;
}
.lk-spent-label {
  font-size: 13px;
  color: var(--white-40);
  transition: color 0.3s;
}
.lk-spent-amount {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

/* ── ECO CARD (replaces spent-card) ── */
.lk-eco-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.07) 0%, var(--bg-card) 65%);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: var(--r-l);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s, border-color 0.3s;
}
.lk-eco-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(34, 197, 94, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.lk-eco-stats {
  display: flex;
  gap: 24px;
}
.lk-eco-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lk-eco-num {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}
.lk-eco-label {
  font-size: 11px;
  color: var(--white-40);
  transition: color 0.3s;
}
.lk-eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(34, 197, 94, 0.85);
  background: rgba(34, 197, 94, 0.1);
  border-radius: 20px;
  padding: 3px 10px;
  width: fit-content;
}
[data-theme="light"] .lk-eco-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, #fff 65%);
}

.lk-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
  transition: color 0.3s;
}

.lk-history {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: background 0.3s;
}
.lk-history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--white-08);
  transition: border-color 0.3s;
}
.lk-history-item:last-child { border-bottom: none; }
.lk-history-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lk-history-icon--in  { background: rgba(178,239,44,0.14);  color: var(--lime); }
.lk-history-icon--out { background: rgba(139,93,246,0.14);  color: var(--purple); }
.lk-history-body { flex: 1; min-width: 0; }
.lk-history-name { font-size: 14px; font-weight: 600; color: var(--white); margin: 0 0 2px; transition: color 0.3s; }
.lk-history-date { font-size: 12px; color: var(--white-40); transition: color 0.3s; }
.lk-history-amount { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.lk-history-amount--in  { color: var(--lime); }
.lk-history-amount--out { color: var(--white); }

/* ── SORT DROPDOWN (custom) ── */
.lk-panel-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lk-sort-wrap {
  position: relative;
  flex-shrink: 0;
}

.lk-sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xxl);
  color: var(--white-70);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lk-sort-btn:hover { background: var(--white-14); border-color: var(--white-40); color: var(--white); }
.lk-sort-wrap.is-open .lk-sort-btn {
  border-color: var(--purple);
  background: rgba(139,93,246,0.08);
  color: var(--white);
}
.lk-sort-btn svg { opacity: 0.5; flex-shrink: 0; transition: transform 0.2s, opacity 0.15s; }
.lk-sort-wrap.is-open .lk-sort-btn svg { transform: rotate(180deg); opacity: 1; }

.lk-sort-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  box-shadow: 0 8px 28px rgba(0,0,0,0.32);
  transition: background 0.3s, border-color 0.3s;
}
.lk-sort-wrap.is-open .lk-sort-dropdown { display: flex; }

.lk-sort-option {
  padding: 9px 12px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--white-70);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.lk-sort-option:hover { background: var(--white-08); color: var(--white); }
.lk-sort-option.is-active { color: var(--purple); font-weight: 600; }

/* Services balance replenish – compact variant */
.lk-replenish-btn--sm {
  margin-top: 0;
  padding: 8px 16px;
  font-size: 13px;
}

/* ── SETTINGS TAB ── */
.lk-settings-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lk-settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lk-settings-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--white-40);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 4px;
  transition: color 0.3s;
}

.lk-settings-block {
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: background 0.3s;
}

.lk-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--white-08);
  transition: border-color 0.3s;
}
.lk-settings-row:last-child { border-bottom: none; }

.lk-settings-row-label {
  flex: 1;
  font-size: 14px;
  color: var(--white-70);
  transition: color 0.3s;
}
.lk-settings-row-value {
  font-size: 14px;
  color: var(--white-40);
  transition: color 0.3s;
}
.lk-settings-row-action {
  background: none;
  border: none;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

/* Toggle in settings */
.lk-toggle {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--white-14);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  border: none;
}
.lk-toggle.on { background: var(--purple); }
.lk-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.lk-toggle.on .lk-toggle-thumb { transform: translateX(18px); }

/* Delete account */
.lk-danger-zone {
  padding: 20px;
  text-align: center;
}
.lk-delete-link {
  background: none;
  border: none;
  color: var(--white-40);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.lk-delete-link:hover { color: #ef4444; }

/* ── SERVICES TAB ── */
.lk-services-balance {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  margin-bottom: 20px;
  transition: background 0.3s;
}
.lk-services-balance-label {
  font-size: 13px;
  color: var(--white-40);
  flex: 1;
  transition: color 0.3s;
}
.lk-services-balance-amount {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.lk-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lk-pkg-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--white-14);
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.lk-pkg-card:hover { transform: translateY(-3px); }

.lk-pkg-header {
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.lk-pkg-name {
  font-size: 15px;
  font-weight: 700;
}
.lk-pkg-price {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 700;
}

/* Bronze */
.lk-pkg-card--bronze .lk-pkg-header { background: #d98c35; color: #fff; }
.lk-pkg-card--bronze:hover { border-color: #d98c35; }
.lk-pkg-card--bronze .lk-pkg-btn { background: #d98c35; color: #fff; }

/* Silver */
.lk-pkg-card--silver .lk-pkg-header { background: #6b7280; color: #fff; }
.lk-pkg-card--silver:hover { border-color: #6b7280; }
.lk-pkg-card--silver .lk-pkg-btn { background: #6b7280; color: #fff; }

/* Gold */
.lk-pkg-card--gold .lk-pkg-header { background: #e8b800; color: #1a1a26; }
.lk-pkg-card--gold:hover { border-color: #e8b800; }
.lk-pkg-card--gold .lk-pkg-btn { background: #e8b800; color: #1a1a26; }

.lk-pkg-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  transition: background 0.3s;
  flex: 1;
}

.lk-pkg-features {
  list-style: none;
  margin: 0;
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.lk-pkg-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--white-08);
  font-size: 14px;
  color: var(--white-70);
  transition: color 0.3s, border-color 0.3s;
}
.lk-pkg-features li:last-child { border-bottom: none; }
.lk-pkg-features li svg { flex-shrink: 0; opacity: 0.65; }

.lk-pkg-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-xxl);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.lk-pkg-btn:hover { filter: brightness(1.08); }
.lk-pkg-btn:active { transform: scale(0.97); }

[data-theme="light"] .lk-pkg-body { background: #fff; }
[data-theme="light"] .lk-pkg-card--silver .lk-pkg-header { background: #9ca3af; }

.lk-services-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--white-40);
  font-style: italic;
  transition: color 0.3s;
}

/* ── LIGHT THEME ── */
[data-theme="light"] .lk-profile { background: #fff; }
[data-theme="light"] .lk-listing-card { background: #fff; }
[data-theme="light"] .lk-history { background: #fff; }
[data-theme="light"] .lk-settings-block { background: #fff; }
[data-theme="light"] .lk-spent-card { background: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .lk-main { padding: 28px 0 0; }
  /*.lk-listing-actions { display: none; }*/
  .lk-wallet-top { grid-template-columns: 1fr; }
  .lk-pkg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 510px) {
	.lk-listing-actions { display: none; }
}

@media (max-width: 510px) {
  .lk-main { padding: 20px 0 0; }
  .lk-profile { padding: 20px 18px 0; }
  .lk-stats { margin: 0 -18px; }
  .lk-stat { padding: 16px 12px; }
  .lk-stat-value { font-size: 18px; }

  /* Profile header — two-row layout on mobile:
     Row 1: avatar ............. balance
     Row 2: name + since (full width, never squished) */
  .lk-profile-top {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 14px;
  }
  .lk-avatar { width: 52px; height: 52px; font-size: 16px; flex-shrink: 0; }
  .lk-profile-meta {
    order: 3;        /* second row */
    width: 100%;
    flex: none;
    min-width: 0;
  }
  .lk-balance-block {
    margin-left: auto;  /* pushes to right on row 1 */
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .lk-balance-big { font-size: 22px; }
  .lk-replenish-pill { font-size: 11px; padding: 5px 10px; }
  .lk-name { font-size: 17px; }
  .lk-since { font-size: 12px; }
  .lk-name-row { gap: 6px; }

  .lk-edit-btn { padding: 7px 14px; font-size: 12px; }
  .lk-tab { padding: 12px 10px; font-size: 12px; gap: 5px; }
  .lk-listing-img-wrap { width: 64px; height: 64px; }
  .lk-listing-img { width: 64px; height: 64px; }
  .lk-listing-meta .lk-views-label { display: none; }
  .lk-listing-title { font-size: 14px; }
  .lk-listing-price { font-size: 15px; }
  .lk-balance-amount { font-size: 26px; }

  /* Panel head — filters full width, right section full width below */
  .lk-panel-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .lk-panel-head-right { width: 100%; }
  .lk-add-btn { flex: 1; justify-content: center; }

  .lk-services-balance { flex-wrap: wrap; gap: 10px; }
}

/* ══════════════════════════════════════════
   TOPUP MODAL
   ══════════════════════════════════════════ */
.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}
.topup-modal.is-open {
  visibility: visible;
  pointer-events: all;
}
.topup-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.25s;
}
.topup-modal.is-open .topup-modal-overlay { opacity: 1; }

.topup-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s;
  scrollbar-width: none;
}
.topup-modal-dialog::-webkit-scrollbar { display: none; }
.topup-modal.is-open .topup-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.topup-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white-08);
  border: none;
  color: var(--white-70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.topup-modal-close:hover { background: var(--white-14); color: var(--white); }

.topup-balance-card {
  background: linear-gradient(135deg, rgba(139,93,246,0.28), rgba(139,93,246,0.08));
  border: 1px solid rgba(139,93,246,0.35);
  border-radius: var(--r-l);
  padding: 20px 22px;
}
.topup-balance-label {
  font-size: 12px;
  color: var(--white-40);
  margin-bottom: 6px;
  transition: color 0.3s;
}
.topup-balance-amount {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.topup-form { display: flex; flex-direction: column; gap: 14px; }
.topup-form-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  transition: color 0.3s;
}

.topup-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.topup-preset {
  padding: 9px 4px;
  border-radius: var(--r-xxl);
  border: 1px solid var(--white-14);
  background: var(--white-08);
  color: var(--white-70);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.topup-preset:hover { background: var(--white-14); color: var(--white); border-color: var(--white-40); }
.topup-preset.is-active {
  background: rgba(139,93,246,0.18);
  border-color: var(--purple);
  color: var(--purple);
}

.topup-field { display: flex; flex-direction: column; gap: 6px; }
.topup-field-label { font-size: 13px; color: var(--white-40); transition: color 0.3s; }
.topup-field-input {
  width: 100%;
  padding: 11px 16px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.topup-field-input::placeholder { color: var(--white-30); }
.topup-field-input:focus { border-color: var(--purple); background: rgba(139,93,246,0.06); }
.topup-field-hint { font-size: 12px; color: var(--white-30); }

.topup-bonus-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(178,239,44,0.08);
  border: 1px solid rgba(178,239,44,0.2);
  border-radius: var(--r-l);
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
}

.topup-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--purple);
  border: none;
  border-radius: var(--r-xxl);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.topup-pay-btn:hover { filter: brightness(1.1); }
.topup-pay-btn:active { transform: scale(0.98); }

.topup-faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--white-08);
  padding-top: 16px;
}
.topup-faq-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--white-30);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.topup-faq-list { display: flex; flex-direction: column; }
.topup-faq-item { border-bottom: 1px solid var(--white-08); }
.topup-faq-item:last-child { border-bottom: none; }
.topup-faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white-70);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color 0.15s;
}
.topup-faq-q::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
  opacity: 0.5;
  margin-top: -3px;
}
.topup-faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.topup-faq-q:hover { color: var(--white); }
.topup-faq-a {
  font-size: 13px;
  color: var(--white-40);
  line-height: 1.55;
  padding-bottom: 12px;
}
.topup-faq-a[hidden] { display: none; }

/* ══════════════════════════════════════════
   SETTINGS EDIT MODAL
   ══════════════════════════════════════════ */
.settings-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}
.settings-edit-modal.is-open { visibility: visible; pointer-events: all; }

.settings-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.2s;
}
.settings-edit-modal.is-open .settings-edit-overlay { opacity: 1; }

.settings-edit-dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
}
.settings-edit-modal.is-open .settings-edit-dialog { transform: none; opacity: 1; }

.settings-edit-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  padding-right: 8px;
  transition: color 0.3s;
}
.settings-edit-input {
  width: 100%;
  padding: 11px 16px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.settings-edit-input:focus { border-color: var(--purple); }
.settings-edit-actions { display: flex; gap: 8px; margin-top: 4px; }
.settings-edit-save {
  flex: 1;
  padding: 11px;
  background: var(--purple);
  border: none;
  border-radius: var(--r-xxl);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.settings-edit-save:hover { filter: brightness(1.1); }
.settings-edit-cancel {
  flex: 1;
  padding: 11px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xxl);
  color: var(--white-70);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.settings-edit-cancel:hover { background: var(--white-14); }

/* ══════════════════════════════════════════
   DELETE CONFIRM MODAL
   ══════════════════════════════════════════ */
.delete-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}
.delete-confirm-modal.is-open { visibility: visible; pointer-events: all; }

.delete-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.2s;
}
.delete-confirm-modal.is-open .delete-confirm-overlay { opacity: 1; }

.delete-confirm-dialog {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
}
.delete-confirm-modal.is-open .delete-confirm-dialog { transform: none; opacity: 1; }

.delete-confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delete-confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 4px 0 0;
  transition: color 0.3s;
}
.delete-confirm-sub {
  font-size: 14px;
  color: var(--white-40);
  line-height: 1.5;
  margin: 0;
  max-width: 260px;
  transition: color 0.3s;
}
.delete-confirm-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.delete-confirm-yes {
  width: 100%;
  padding: 12px;
  background: #ef4444;
  border: none;
  border-radius: var(--r-xxl);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.delete-confirm-yes:hover { filter: brightness(1.1); }
.delete-confirm-cancel {
  width: 100%;
  padding: 12px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-xxl);
  color: var(--white-70);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.delete-confirm-cancel:hover { background: var(--white-14); }

/* ══════════════════════════════════════════
   PROMO BAR — desktop (active cards only)
   ══════════════════════════════════════════ */
.lk-listing-card[data-status="active"] {
  flex-wrap: wrap;
}

.lk-listing-card[data-status="paused"] {
  flex-wrap: wrap;
}

.lk-listing-card[data-status="expired"] {
  flex-wrap: wrap;
}

.lk-listing-card[data-status="expiredactive"] {
  flex-wrap: wrap;
}

.lk-promo-bar {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--white-08);
  padding-top: 10px;
  margin-top: 4px;
}

.lk-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--white-40);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.lk-promo-chip:hover { color: var(--white); }
.lk-promo-chip.is-active { color: var(--white); }
.lk-promo-chip:active { transform: scale(0.95); }

/* Premium chip — gold star accent */
.lk-promo-chip--premium { color: rgba(232, 184, 0, 0.7); }
.lk-promo-chip--premium:hover { color: #e8b800; }
.lk-promo-chip--premium.is-active { color: #e8b800; }
.lk-promo-chip--premium.is-active .lk-promo-chip-check {
  border-color: #e8b800;
  background: #e8b800;
  color: #1a1a26;
}
.lk-promo-star { flex-shrink: 0; }

@keyframes promoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(139, 93, 246, 0.55); }
  60%  { box-shadow: 0 0 0 6px rgba(139, 93, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 93, 246, 0); }
}

.lk-promo-apply-btn {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  padding: 6px 18px;
  border-radius: 20px;
  border: none;
  background: var(--purple);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(139, 93, 246, 0.45);
  transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}
.lk-promo-apply-btn.is-visible {
  display: flex;
  animation: promoPulse 1.6s ease-out 0.1s;
}
.lk-promo-apply-btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 3px 16px rgba(139, 93, 246, 0.6);
}
.lk-promo-apply-btn:active { transform: scale(0.96); }
.lk-promo-apply-btn:disabled { opacity: 0.7; cursor: default; box-shadow: none; }

/* Hide promo bar on ≤860px (where action buttons are also hidden) */
@media (max-width: 860px) {
  .lk-promo-bar { display: none; }
}

/* ══════════════════════════════════════════
   PROMO BOTTOM SHEET  (mobile)
   ══════════════════════════════════════════ */
.lk-promo-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.lk-promo-sheet.is-open { pointer-events: all; }

.lk-promo-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.lk-promo-sheet.is-open .lk-promo-sheet-overlay { opacity: 1; }

.lk-promo-sheet-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), background 0.3s;
  max-height: 85vh;
  overflow-y: auto;
}
.lk-promo-sheet.is-open .lk-promo-sheet-panel { transform: translateY(0); }

.lk-promo-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--white-14);
  border-radius: 2px;
  margin: 0 auto 4px;
  flex-shrink: 0;
}

.lk-promo-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.lk-promo-sheet-listing {
  font-size: 13px;
  color: var(--white-40);
  margin-top: -10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.lk-promo-sheet-opts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lk-promo-sheet-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  border: 1px solid var(--white-08);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  text-align: left;
}
.lk-promo-sheet-opt:hover { border-color: var(--white-14); background: var(--white-04); }
.lk-promo-sheet-opt.is-active {
  border-color: var(--purple);
  background: rgba(139, 93, 246, 0.1);
}

.lk-promo-sheet-opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lk-promo-sheet-opt-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-08);
  border-radius: 10px;
  color: var(--white-70);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.lk-promo-sheet-opt.is-active .lk-promo-sheet-opt-icon {
  background: rgba(139, 93, 246, 0.2);
  color: var(--purple);
}
.lk-promo-sheet-opt-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}
.lk-promo-sheet-opt-desc {
  font-size: 12px;
  color: var(--white-40);
  margin-top: 2px;
  transition: color 0.3s;
}
.lk-promo-sheet-opt-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lk-promo-sheet-opt-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}
.lk-promo-sheet-opt-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--white-14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.lk-promo-sheet-opt.is-active .lk-promo-sheet-opt-check {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.lk-promo-sheet-apply {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-xxl);
  border: none;
  background: var(--purple);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s, opacity 0.2s;
  margin-top: 4px;
}
.lk-promo-sheet-apply:hover { filter: brightness(1.1); }
.lk-promo-sheet-apply:active { transform: scale(0.98); }
.lk-promo-sheet-apply:disabled { opacity: 0.45; cursor: default; filter: none; }

[data-theme="light"] .lk-promo-sheet-panel { background: #fff; }

/* Стилизация загрузчика профиля */
.lk-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.lk-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-avatar-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Стилизация стандартных кнопок */
.lk-avatar-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
}

.lk-avatar-buttons .btn-primary {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.lk-avatar-buttons .btn-primary:hover {
    background: #4f46e5;
}

.lk-avatar-buttons .btn-secondary {
    background: #fff;
    border-color: #e2e8f0;
    color: #ef4444;
}

.lk-avatar-buttons .btn-secondary:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Скрываем ненужные элементы стандартного загрузчика */
.user-img, 
.img-preview,
.user-img-button .style {
    display: none !important;
}

.user-img-button {
    margin: 0 !important;
    padding: 0 !important;
}

/* Оставляем видимыми только кнопки */
.user-img-button .btn {
    display: inline-flex !important;
}

.im-message-extra.im-box-gray {
    position: relative;
    padding: 10px 44px 10px 0 !important;
    margin: 0;
    border: none;
    background: transparent;
    text-align: left;
}
.im-message-extra.im-box-gray {
    padding: 10px 8px 4px 8px !important;
    margin-top: 15px;
    height: auto;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    -webkit-border-bottom-right-radius: 3px;
    -webkit-border-bottom-left-radius: 3px;
    -moz-border-radius-bottomright: 3px;
    -moz-border-radius-bottomleft: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}
.im-table-row:hover .im-message-extra a.im-hide {display:block;}
.im-message-extra a.im-download {font-size:11px;text-decoration:none;float:left;}
.im-message-extra a.im-download:hover {text-decoration:underline;}
.im-att-icon {margin-right:5px;vertical-align:-3px;}

body .im-message-extra.im-box-gray .im-col-10 {width:100%;}
body .im-message-extra.im-box-gray {position:relative;padding:10px 44px 10px 0!important;margin:0;border:none;background:transparent;text-align:left;}
body .im-message-extra.im-box-gray im-col-10 {width:100%:}
body .im-message-extra a.im-download {float:left;width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:14px;}
body .im-message-extra a.im-download .im-att-icon {display:none;}
body .im-message-extra a.im-download > i {display:inline-block!important;margin-right:6px;float:left;line-height:14px;}
body .im-message-extra a.im-hide > span {display:none!important;}
body .im-message-extra a.im-hide > i {display:block!important;}
body .im-message-extra a.im-hide {transition:0.1s;position:absolute;width:32px;height:32px;padding:6px;text-align:center;font-size:14px;color:#666;border-radius:4px;top:1px;right:0;}
body .im-message-extra a.im-hide i {line-height:20px;}
body .im-message-extra a.im-hide:hover {background:#f0f0f0;}
body .im-message-extra .im-col-14.im-align-right {position:initial;}

.im-del-mes-box {position:absolute;width:32px;height:28px;right:-32px;left:auto;top:0px;margin:0;padding:0 0 0 4px;}
.im-from .im-del-mes-box {left:-32px;right:auto;padding:0 4px 0 0;}
.im-del-mes-box > a {width:28px;height:28px;padding:0;text-align:center;font-size:16px;color:#e31111;border-radius:5px;transition:0.1s;display:none;}
.im-del-mes-box > a i {line-height:28px;}
.im-del-mes-box > a:hover {background:rgba(0,0,0,0.1);}
.im-del-mes-box > a {display:block;}

@media screen and (max-width: 1200px) {
  .im-message-extra a.im-download {max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
  .im-threads .im-col-2.c3 {color: transparent; overflow: hidden;}
}

.or-my-services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.or-services-balance {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}
.or-service-card {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 25px;
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.or-service-bumps { border-top: 4px solid #3498db; }
.or-service-highlights { border-top: 4px solid #f39c12; }
.or-service-premiums { border-top: 4px solid #9b59b6; }
.or-service-icon i { font-size: 36px; color: #666; }
.or-service-count { font-size: 32px; font-weight: bold; margin: 10px 0; }
.or-service-name { color: #666; }
.or-items-list {
    background: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
	color: var(--white);
}
.or-items-list h2 {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
	color: var(--white);
}
.or-items-table {
    width: 100%;
    border-collapse: collapse;
}
.or-items-table th {
    background: color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}
.or-items-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.or-item-title a {
    color: var(--white);
    text-decoration: none;
}
.or-item-title a:hover {
    color: #0073aa;
}
.or-apply-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}
.or-apply-bump { background: #3498db; }
.or-apply-highlight { background: #f39c12; }
.or-apply-premium { background: #9b59b6; }
.or-active-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #28a745;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
}
.or-no-service {
    color: #999;
    font-size: 12px;
}
.or-buy-more {
    text-align: center;
    margin-top: 30px;
}
.or-button-primary {
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
	width: 250px;
}
@media (max-width: 768px) {
    .or-services-balance {
        flex-direction: column;
        align-items: center;
    }
    .or-service-card {
        width: 100%;
        max-width: none;
    }
    .or-items-table th,
    .or-items-table td {
        padding: 10px;
        font-size: 12px;
    }
}

.messageright {
	float:right;
}

/* Стили для чекбоксов в promo bar */
.lk-promo-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
    cursor: pointer;
    user-select: none;
}

.lk-promo-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.lk-promo-chip-check {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid var(--white-40);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lk-promo-chip-check svg {
    width: 8px;
    height: 8px;
    display: none;
    color: #fff;
}

.lk-promo-checkbox:checked + .lk-promo-chip-check {
    border-color: var(--purple);
    background: var(--purple);
}

.lk-promo-checkbox:checked + .lk-promo-chip-check svg {
    display: block;
}

.lk-promo-chip--premium .lk-promo-checkbox:checked + .lk-promo-chip-check {
    border-color: #e8b800;
    background: #e8b800;
}

.lk-promo-chip--premium .lk-promo-checkbox:checked + .lk-promo-chip-check svg {
    display: block;
    color: #1a1a26;
}

.lk-promo-checkbox:disabled + .lk-promo-chip-check {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-email {
    background: none;
    border: none;
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.btn-password {
    background: none;
    border: none;
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.topup-view-dialog {
    position: relative;
    width: 100%;
    max-width: 660px;
    /*max-height: 90vh;*/
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--white-14);
    border-radius: var(--r-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s;
    scrollbar-width: none;
}

.post-field-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
	max-height: 360px;
}

/* Checkbox inside each chip */
.lk-promo-chip-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--white-40);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.lk-promo-chip.is-active .lk-promo-chip-check {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

/* ============================================
   АДАПТИВ ДЛЯ СТРАНИЦЫ ПОПОЛНЕНИЯ БАЛАНСА
   ============================================ */

/* Мобильная версия (до 768px) */
@media (max-width: 768px) {
    .or-topup-page {
        padding: 15px !important;
    }
    
    .topup-view-dialog {
        padding: 20px !important;
        gap: 16px !important;
    }
    
    /* Карточка баланса */
    .topup-balance-card {
        padding: 16px 18px !important;
    }
    
    .topup-balance-amount {
        font-size: 28px !important;
    }
    
    /* Заголовок формы */
    .topup-form-title {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }
    
    /* Пресеты сумм (4 кнопки в ряд) */
    .topup-presets {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }
    
    .topup-preset {
        padding: 8px 4px !important;
        font-size: 13px !important;
    }
    
    /* Поля ввода */
    .topup-field {
        gap: 4px !important;
    }
    
    .topup-field-label {
        font-size: 13px !important;
    }
    
    .topup-field-input {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    
    .topup-field-hint {
        font-size: 11px !important;
    }
    
    /* Баннер бонуса */
    .topup-bonus-banner {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    
    /* Кнопка оплаты */
    .topup-pay-btn {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    /* FAQ секция */
    .topup-faq-title {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    
    .topup-faq-q {
        font-size: 13px !important;
        padding: 10px 0 !important;
    }
    
    .topup-faq-a {
        font-size: 12px !important;
        padding-bottom: 10px !important;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .or-topup-page {
        padding: 10px !important;
    }
    
    .topup-view-dialog {
        padding: 16px !important;
        gap: 14px !important;
    }
    
    .topup-balance-card {
        padding: 14px 16px !important;
    }
    
    .topup-balance-label {
        font-size: 12px !important;
    }
    
    .topup-balance-amount {
        font-size: 24px !important;
    }
    
    .topup-form-title {
        font-size: 16px !important;
    }
    
    /* Пресеты сумм (4 кнопки в ряд, но поменьше) */
    .topup-presets {
        gap: 5px !important;
    }
    
    .topup-preset {
        padding: 6px 2px !important;
        font-size: 11px !important;
    }
    
    .topup-field-input {
        padding: 8px 12px !important;
    }
    
    .topup-pay-btn {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    .topup-pay-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .topup-faq-q {
        font-size: 12px !important;
    }
}

/* Планшеты (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .or-topup-page {
        padding: 20px !important;
    }
    
    .topup-view-dialog {
        max-width: 560px !important;
        margin: 0 auto !important;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .topup-view-dialog {
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    
    .topup-presets {
        gap: 8px !important;
    }
    
    .topup-preset {
        padding: 6px 4px !important;
    }
}