﻿/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #f5f5f5; color: #333; }
a { text-decoration: none; color: inherit; }

/* ========== HEADER ========== */
header {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff7337 100%);
  color: #fff;
  padding: 0 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; }
.logo img { filter: brightness(0) invert(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions input {
  padding: 8px 14px; border-radius: 20px; border: none;
  width: 240px; font-size: 0.9rem; outline: none;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: #ee4d2d; color: #fff; border: none; border-radius: 6px;
  padding: 10px 20px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: #d4401f; transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: #ee4d2d; border: 1.5px solid #ee4d2d; border-radius: 6px;
  padding: 8px 16px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: #fff3f0; }
.btn-admin {
  background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.btn-admin:hover { background: rgba(255,255,255,0.35); }

/* ========== HERO BANNER CAROUSEL ========== */
.hero-banner {
  position: relative; overflow: hidden; height: 280px;
  background: #ee4d2d; cursor: pointer;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.5);
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(238,77,45,0.85) 0%, rgba(0,0,0,0.35) 100%);
}
.hero-slide-content {
  position: relative; z-index: 2;
  padding: 32px 48px; color: #fff; max-width: 600px;
}
.hero-badge {
  display: inline-block; background: #fff; color: #ee4d2d;
  font-weight: 800; font-size: 1rem; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 12px;
}
.hero-slide-content h2 {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide-price {
  font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.hero-cta {
  display: inline-block; background: #fff; color: #ee4d2d;
  font-weight: 700; padding: 8px 20px; border-radius: 24px;
  font-size: .9rem; transition: transform .2s;
}
.hero-slide:hover .hero-cta { transform: translateX(4px); }
.hero-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.5); cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.hero-dot.active { background: #fff; transform: scale(1.3); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  font-size: 2rem; cursor: pointer; padding: 4px 14px;
  border-radius: 4px; z-index: 10; transition: background .2s; line-height: 1;
}
.hero-arrow:hover { background: rgba(255,255,255,0.4); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-static {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7337 0%, #ee4d2d 60%, #c0392b 100%);
}
.hero-content { color: #fff; text-align: center; }
.hero-content h1 { font-size: 2.2rem; margin-bottom: 10px; }
.hero-content p  { font-size: 1.1rem; opacity: .9; }
@media (max-width: 600px) {
  .hero-banner { height: 200px; }
  .hero-slide-content { padding: 20px 24px; }
  .hero-slide-content h2 { font-size: 1.1rem; }
  .hero-slide-price { font-size: 1rem; }
  .hero-arrow { display: none; }
}

/* ========== CATEGORY BAR ========== */
.cat-section {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 0 10px;
}
.cat-track-wrap {
  max-width: 1200px; margin: 0 auto;
  position: relative; display: flex; align-items: center;
  padding: 0 40px;
}
.cat-track {
  display: flex; gap: 4px; overflow-x: auto;
  scroll-behavior: smooth; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 8px;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; background: none; border: none; cursor: pointer;
  flex-shrink: 0; width: 82px; padding: 6px 4px;
  border-radius: 10px; transition: background .15s;
}
.cat-item:hover { background: #fff3f0; }
.cat-item.active .cat-circle {
  background: #ee4d2d; box-shadow: 0 2px 10px rgba(238,77,45,.35);
  transform: scale(1.08);
}
.cat-item.active .cat-label { color: #ee4d2d; font-weight: 700; }
.cat-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: #f5f5f5; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.cat-item:hover .cat-circle { background: #fde8e3; }
.cat-label {
  font-size: 0.68rem; color: #555; text-align: center;
  line-height: 1.25; max-width: 74px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cat-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid #ddd; border-radius: 50%;
  width: 32px; height: 32px; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); z-index: 2;
  transition: box-shadow .2s, border-color .2s; line-height: 1;
  color: #555; padding: 0;
}
.cat-arrow:hover { border-color: #ee4d2d; color: #ee4d2d; box-shadow: 0 4px 12px rgba(238,77,45,.2); }
.cat-arrow-left  { left: 4px; }
.cat-arrow-right { right: 4px; }
/* Fade edges */
.cat-track-wrap::before,
.cat-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none;
}
.cat-track-wrap::before { left: 36px;  background: linear-gradient(to right, #fff 40%, transparent); }
.cat-track-wrap::after  { right: 36px; background: linear-gradient(to left,  #fff 40%, transparent); }
@media (max-width: 600px) {
  .cat-track-wrap { padding: 0 32px; }
  .cat-circle     { width: 44px; height: 44px; font-size: 1.25rem; }
  .cat-item       { width: 66px; }
  .cat-label      { font-size: 0.62rem; }
}
[data-theme="dark"] .cat-section { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .cat-circle  { background: #2a2a2a; }
[data-theme="dark"] .cat-item:hover { background: #2a2a2a; }
[data-theme="dark"] .cat-item:hover .cat-circle { background: #3a2020; }
[data-theme="dark"] .cat-label  { color: #aaa; }
[data-theme="dark"] .cat-arrow  { background: #2a2a2a; border-color: #444; color: #ccc; }
[data-theme="dark"] .cat-track-wrap::before { background: linear-gradient(to right, #1a1a1a 40%, transparent); }
[data-theme="dark"] .cat-track-wrap::after  { background: linear-gradient(to left,  #1a1a1a 40%, transparent); }
[data-theme="dark"] .cat-item.active .cat-label { color: #ff7a5c; }

/* ========== PRODUCT GRID ========== */
main { max-width: 1200px; margin: 20px auto 40px; padding: 0 16px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); }

.product-card .badge-featured {
  position: absolute; top: 8px; left: 8px;
  background: #ffa724; color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; z-index: 1;
}
.product-card .badge-discount {
  position: absolute; top: 8px; right: 8px;
  background: #ee4d2d; color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}

.card-img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #f9f9f9;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-name  { font-size: 0.88rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc  { font-size: 0.76rem; color: #888; }
.card-prices { margin-top: auto; padding-top: 8px; }
.card-original { font-size: 0.78rem; color: #bbb; text-decoration: line-through; }
.card-price { font-size: 1.15rem; font-weight: 700; color: #ee4d2d; }

.card-btn {
  display: block; text-align: center;
  background: #ee4d2d; color: #fff; font-weight: 700;
  padding: 10px; font-size: 0.88rem;
  transition: background .2s;
}
.card-btn:hover { background: #d4401f; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 60px 20px; color: #aaa; }
.empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 1.1rem; margin-bottom: 16px; }

/* ========== FOOTER ========== */
footer {
  background: #222; color: #aaa; text-align: center;
  padding: 20px; font-size: 0.82rem;
}

/* ========== LOGIN OVERLAY ========== */
.login-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; z-index: 999;
}
.login-box {
  background: #fff; border-radius: 14px; padding: 40px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 300px; box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}
.login-box h2 { font-size: 1.3rem; color: #333; }
.login-box input {
  width: 100%; padding: 10px 14px; border: 1.5px solid #ddd;
  border-radius: 8px; font-size: 0.95rem; outline: none; text-align: center;
}
.login-box input:focus { border-color: #ee4d2d; }
.login-box .btn-primary { width: 100%; }

/* ========== ADMIN MAIN ========== */
.admin-page { background: #f0f0f0; }
.admin-main { max-width: 1100px; margin: 24px auto 60px; padding: 0 16px; display: flex; flex-direction: column; gap: 24px; }

.admin-form-card, .admin-list-card {
  background: #fff; border-radius: 12px;
  padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.admin-form-card h2, .admin-list-card h2 { font-size: 1.1rem; color: #ee4d2d; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: #555; }
.form-group input, .form-group select, .form-group textarea {
  padding: 9px 12px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: 0.9rem; outline: none; transition: border .2s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #ee4d2d; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }

/* TOGGLE */
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { display: none; }
.slider {
  width: 44px; height: 24px; background: #ccc; border-radius: 12px;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.slider::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; top: 3px; left: 3px;
  transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .slider { background: #ee4d2d; }
.toggle input:checked + .slider::after { left: 23px; }
.toggle-label { font-size: 0.85rem; color: #555; }

/* BADGE */
.badge {
  background: #ee4d2d; color: #fff; border-radius: 20px;
  padding: 2px 9px; font-size: 0.75rem; font-weight: 700;
}

/* ADMIN LIST */
.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.list-header input { padding: 8px 14px; border: 1.5px solid #ddd; border-radius: 20px; font-size: 0.85rem; outline: none; width: 200px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }

.admin-item {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid #eee; border-radius: 10px; padding: 10px 14px;
  transition: border-color .2s;
}
.admin-item:hover { border-color: #ee4d2d; }
.admin-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info .name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-info .meta { font-size: 0.78rem; color: #888; margin-top: 2px; }
.admin-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-edit   { background:#fff3e0; color:#e67e22; border:1.5px solid #e67e22; border-radius:6px; padding:6px 12px; cursor:pointer; font-size:.8rem; font-weight:600; }
.btn-delete { background:#fff0f0; color:#ee4d2d; border:1.5px solid #ee4d2d; border-radius:6px; padding:6px 12px; cursor:pointer; font-size:.8rem; font-weight:600; }
.btn-edit:hover   { background:#e67e22; color:#fff; }
.btn-delete:hover { background:#ee4d2d; color:#fff; }

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .header-actions input { width: 120px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-item img { width: 48px; height: 48px; }
  .price-control label { display: none; }
  .price-control input  { width: 65px; }
  .search-wrap { position: relative; }
}

/* ── SEARCH WRAP & DROPDOWN ──────────────────────────────────── */
.search-wrap { position: relative; }
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 500; overflow: hidden; min-width: 260px;
}
.dd-header { padding: 8px 14px; font-size: 0.78rem; color: #aaa; background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 0.88rem; cursor: pointer; color: #333;
  transition: background .15s;
}
.dd-item:hover { background: #fff5f3; }
.dd-item i  { color: #bbb; font-size: 0.8rem; flex-shrink: 0; }
.dd-item mark { background: none; color: #ee4d2d; font-weight: 700; }
.dd-remove {
  margin-left: auto; background: none; border: none; color: #ccc;
  cursor: pointer; font-size: 0.78rem; padding: 2px 4px; flex-shrink: 0;
}
.dd-remove:hover { color: #ee4d2d; }
.dd-clear { padding: 8px 14px; font-size: 0.78rem; color: #ee4d2d; cursor: pointer; text-align: center; border-top: 1px solid #f0f0f0; }
.dd-clear:hover { background: #fff5f3; }

/* ── STARS ───────────────────────────────────────────────────── */
.card-stars { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: #f5a623; margin-top: 4px; }
.card-sold  { color: #888; font-size: 0.72rem; }
.star-val   { color: #888; font-size: 0.72rem; }
.modal-stars { display: flex; align-items: center; gap: 4px; color: #f5a623; font-size: 1rem; margin: 4px 0; }
.modal-stars .star-val { color: #888; font-size: 0.85rem; }
.modal-sold { font-size: 0.85rem; color: #888; margin-bottom: 8px; }

/* ── MODAL ACTIONS ROW ───────────────────────────────────────── */
.modal-actions-row { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.modal-fav-btn {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid #ee4d2d; color: #ee4d2d;
  border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 0.88rem; font-weight: 600;
  transition: all .2s;
}
.modal-fav-btn:hover, .modal-fav-btn.active { background: #ee4d2d; color: #fff; }
.modal-share-btn {
  background: #25D366; color: #fff; border: none; border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.modal-share-btn:hover { opacity: .85; }
.modal-share-btn.telegram { background: #229ED9; }

/* ── FAVORITES FAB ───────────────────────────────────────────── */
.fav-fab {
  position: fixed; bottom: 90px; right: 24px;
  background: #ee4d2d; color: #fff; border: none; border-radius: 50%;
  width: 52px; height: 52px; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(238,77,45,.4); z-index: 999;
  transition: transform .2s;
}
.fav-fab:hover { transform: scale(1.1); }
.fav-count {
  position: absolute; top: -4px; right: -4px;
  background: #333; color: #fff; font-size: 0.65rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ── FAVORITES PANEL ─────────────────────────────────────────── */
.fav-panel {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: flex-end; z-index: 1001;
}
.fav-panel-inner {
  background: #fff; width: 360px; max-width: 100%; height: 100%;
  max-height: 100vh; overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  display: flex; flex-direction: column;
}
.fav-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid #eee; position: sticky; top: 0;
  background: #fff; z-index: 1;
}
.fav-panel-header h3 { font-size: 1.1rem; color: #333; }
.fav-panel-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #888; }
.fav-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fav-empty { text-align: center; color: #aaa; padding: 40px; }
.fav-item {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid #eee; border-radius: 10px; padding: 10px; cursor: pointer;
  transition: border-color .2s;
}
.fav-item:hover { border-color: #ee4d2d; }
.fav-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.fav-item-info { flex: 1; min-width: 0; }
.fav-name  { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-price { font-size: 0.82rem; color: #ee4d2d; font-weight: 700; margin-top: 2px; }
.fav-remove { background: none; border: none; color: #ccc; cursor: pointer; padding: 4px; flex-shrink: 0; }
.fav-remove:hover { color: #ee4d2d; }

/* Dark mode extras */
[data-theme="dark"] .controls-bar { background: #1a1a1a; border-bottom-color: #333; }
[data-theme="dark"] .search-dropdown { background: #1e1e1e; }
[data-theme="dark"] .dd-item  { color: #e0e0e0; }
[data-theme="dark"] .dd-item:hover { background: #2a2a2a; }
[data-theme="dark"] .dd-header { background: #252525; border-color: #333; color: #666; }
[data-theme="dark"] .dd-clear  { border-color: #333; }
[data-theme="dark"] .fav-panel-inner { background: #1e1e1e; }
[data-theme="dark"] .fav-panel-header { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .fav-panel-header h3 { color: #e0e0e0; }
[data-theme="dark"] .fav-item { border-color: #333; }
[data-theme="dark"] .fav-name  { color: #e0e0e0; }
.btn-dark-mode {
  background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.btn-dark-mode:hover { background: rgba(255,255,255,0.35); }

/* ── CONTROLS BAR ─────────────────────────────────────────────── */
.controls-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 16px;
  position: sticky; top: 60px; z-index: 90;
}
.controls-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.sort-control { display: flex; align-items: center; gap: 8px; }
.sort-control label { color: #888; font-size: 0.85rem; }
.sort-control select {
  padding: 6px 12px; border: 1.5px solid #ddd; border-radius: 20px;
  font-size: 0.85rem; outline: none; cursor: pointer; background: #fff;
  transition: border-color .2s;
}
.sort-control select:focus { border-color: #ee4d2d; }
.price-control { display: flex; align-items: center; gap: 8px; }
.price-control label { color: #888; font-size: 0.85rem; white-space: nowrap; }
.price-control input {
  padding: 6px 10px; border: 1.5px solid #ddd; border-radius: 20px;
  font-size: 0.85rem; outline: none; width: 80px; text-align: center;
  transition: border-color .2s;
}
.price-control input:focus { border-color: #ee4d2d; }
.price-control span { color: #aaa; }
.btn-clear-price {
  background: none; border: none; color: #bbb; cursor: pointer;
  font-size: 0.85rem; padding: 4px; display: flex; align-items: center;
  transition: color .2s;
}
.btn-clear-price:hover { color: #ee4d2d; }

/* ── SKELETON LOADING ─────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex; flex-direction: column;
}
.skel {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.2s infinite; border-radius: 4px;
}
.skel-img   { height: 200px; border-radius: 0; }
.skel-body  { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.skel-line  { height: 14px; }
.skel-short { width: 60%; }
.skel-price { height: 20px; width: 50%; margin-top: 4px; }
.skel-btn   { height: 38px; border-radius: 0; }

/* ── CARD ANIMATION ───────────────────────────────────────────── */
.product-card { opacity: 0; }
.product-card.card-visible { animation: cardFadeIn 0.5s ease forwards; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BADGES NOVO & QUENTE ─────────────────────────────────────── */
.badge-new {
  position: absolute; top: 8px; left: 8px;
  background: #4caf50; color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; z-index: 1;
}
.badge-hot {
  position: absolute; top: 8px; left: 8px;
  background: #ff5722; color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; z-index: 1;
}

/* ── DARK MODE ────────────────────────────────────────────────── */
[data-theme="dark"] body          { background: #121212; color: #e0e0e0; }
[data-theme="dark"] .controls-bar { background: #1a1a1a; border-bottom-color: #333; }
[data-theme="dark"] .sort-control select,
[data-theme="dark"] .price-control input { background: #2a2a2a; color: #e0e0e0; border-color: #444; }
[data-theme="dark"] .filter-btn   { background: #2a2a2a; border-color: #444; color: #ccc; }
[data-theme="dark"] .filter-btn:hover  { border-color: #ff6b4a; color: #ff6b4a; }
[data-theme="dark"] .filter-btn.active { background: #ee4d2d; color: #fff; border-color: #ee4d2d; }
[data-theme="dark"] .product-card { background: #1e1e1e; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
[data-theme="dark"] .card-img-wrap { background: #2a2a2a; }
[data-theme="dark"] .card-name    { color: #e0e0e0; }
[data-theme="dark"] .card-desc    { color: #999; }
[data-theme="dark"] .card-original { color: #666; }
[data-theme="dark"] .card-price   { color: #ff7a5c; }
[data-theme="dark"] .empty-state  { color: #555; }
[data-theme="dark"] .skeleton-card { background: #1e1e1e; }
[data-theme="dark"] .skel {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 400px 100%;
}
[data-theme="dark"] .modal-box    { background: #1e1e1e; color: #e0e0e0; }
[data-theme="dark"] .modal-info h2 { color: #e0e0e0; }
[data-theme="dark"] .modal-desc   { color: #aaa; }
[data-theme="dark"] .modal-category { background: #333; color: #ccc; }

/* ── TELEGRAM FAB ─────────────────────────────────────────── */
.telegram-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(34,158,217,.45);
  z-index: 1000;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.telegram-fab i {
  font-size: 1.4rem;
  line-height: 1;
}
.telegram-fab:hover {
  background: #1a8bbf;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34,158,217,.55);
}
@media (max-width: 480px) {
  .telegram-fab span { display: none; }
  .telegram-fab { padding: 14px; border-radius: 50%; }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 32px 16px;
  margin-top: 48px;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.badge-ssl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #4caf50;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}
.badge-ssl i { font-size: .85rem; }
.footer-copy {
  font-size: .82rem;
  color: #666;
  margin: 8px 0 4px;
}
.footer-affiliate {
  font-size: .78rem;
  color: #555;
  margin: 0;
}
.footer-disclaimer {
  font-size: .72rem;
  color: #444;
  margin: 10px auto 0;
  max-width: 640px;
  line-height: 1.5;
}
.footer-legal {
  font-size: .75rem;
  color: #555;
  margin-top: 10px;
}
.footer-legal a {
  color: #ff9800;
  text-decoration: underline;
}
.footer-legal a:hover { color: #ffb74d; }

/* ── LGPD CONSENT BANNER ─────────────────────────────────────── */
.lgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a1a1a; border-top: 2px solid #ee4d2d;
  padding: 12px 20px; box-shadow: 0 -2px 12px rgba(0,0,0,.35);
}
.lgpd-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.lgpd-inner p { flex: 1; font-size: .8rem; color: #bbb; line-height: 1.5; margin: 0; min-width: 200px; }
.lgpd-inner p a { color: #ff9800; text-decoration: underline; }
.lgpd-btns { display: flex; gap: 8px; flex-shrink: 0; }
.lgpd-accept {
  background: #ee4d2d; color: #fff; border: none; border-radius: 6px;
  padding: 7px 18px; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.lgpd-accept:hover { background: #d94025; }
.lgpd-decline {
  background: transparent; color: #888; border: 1px solid #444;
  border-radius: 6px; padding: 7px 14px; font-size: .8rem; cursor: pointer;
}
.lgpd-decline:hover { color: #bbb; border-color: #666; }

/* ========== CARD THUMBNAILS ========== */
.badge-gallery {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 0.7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; z-index: 1; backdrop-filter: blur(2px);
}
.card-thumbs {
  display: flex; gap: 5px; padding: 6px 8px;
  overflow-x: auto; background: #fafafa;
  border-top: 1px solid #f0f0f0;
  scrollbar-width: thin; scrollbar-color: #ddd transparent;
}
.card-thumbs::-webkit-scrollbar { height: 3px; }
.card-thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 5px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; position: relative;
  background: #f0f0f0; transition: border-color .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: #ee4d2d; }
.thumb:hover  { border-color: #ff7337; }
.thumb.video-thumb { background: #000; }
.thumb.thumb-more {
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #555; background: #eee;
}
.play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
  background: rgba(0,0,0,.25);
}
.vt-placeholder { width: 100%; height: 100%; background: #222; }

/* ========== PRODUCT MODAL ========== */
.product-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 500;
  align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.product-modal.open { display: flex; }

.modal-box {
  background: #fff; border-radius: 14px;
  width: 100%; max-width: 860px; max-height: 90vh;
  display: flex; overflow: hidden; position: relative;
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 10;
  background: rgba(0,0,0,.12); border: none; border-radius: 50%;
  width: 34px; height: 34px; font-size: 1.3rem; cursor: pointer; color: #333;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: rgba(0,0,0,.22); }

/* Gallery side */
.modal-gallery {
  width: 50%; flex-shrink: 0; display: flex; flex-direction: column;
  background: #f8f8f8; border-right: 1px solid #eee; overflow: hidden;
}
.modal-main-display {
  flex: 1; overflow: hidden; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 8px;
}
.modal-main-display img { max-width: 100%; max-height: 100%; object-fit: contain; }

.modal-thumbs-strip {
  display: flex; gap: 6px; padding: 10px;
  overflow-x: auto; background: #f3f3f3; border-top: 1px solid #eee;
  min-height: 72px; align-items: center;
  scrollbar-width: thin; scrollbar-color: #ddd transparent;
}
.modal-thumb {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; cursor: pointer;
  border: 2.5px solid transparent; background: #eee; position: relative;
  transition: border-color .15s;
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumb.active { border-color: #ee4d2d; }
.modal-thumb:hover  { border-color: #ff7337; }
.modal-thumb.video-thumb { background: #000; }

/* Info side */
.modal-info {
  flex: 1; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
}
.modal-category {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: #ee4d2d; font-weight: 700;
}
.modal-info h2 { font-size: 1.05rem; line-height: 1.4; color: #222; }
.modal-prices { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.modal-original { font-size: .9rem; color: #bbb; text-decoration: line-through; }
.modal-price    { font-size: 1.6rem; font-weight: 800; color: #ee4d2d; }
.modal-discount {
  background: #ee4d2d; color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.modal-desc { font-size: .85rem; color: #666; line-height: 1.5; }
.modal-buy-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #ee4d2d; color: #fff; font-size: 1rem; font-weight: 700;
  padding: 14px 20px; border-radius: 8px; margin-top: auto;
  transition: background .2s, transform .1s;
}
.modal-buy-btn:hover { background: #d4401f; transform: translateY(-1px); }

/* ── COUNTDOWN TIMER ─────────────────────────────────────────── */
.card-countdown-wrap { padding: 0 12px 6px; }
.card-countdown {
  display: inline-block; background: #fff3e0; color: #e65100;
  font-size: 0.72rem; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; letter-spacing: .3px;
}
.modal-countdown {
  background: #fff3e0; color: #e65100; font-weight: 700;
  padding: 8px 14px; border-radius: 8px; margin-bottom: 12px;
  font-size: .9rem; text-align: center;
}
[data-theme="dark"] .card-countdown    { background: #3e2000; color: #ffb74d; }
[data-theme="dark"] .modal-countdown   { background: #3e2000; color: #ffb74d; }

/* ── RELATED PRODUCTS ────────────────────────────────────────── */
.modal-related-section {
  margin-top: 16px; border-top: 1px solid #eee; padding-top: 12px;
}
.modal-related-section h4 {
  font-size: .8rem; font-weight: 700; color: #aaa;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.modal-related-list {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: thin;
}
.related-item {
  flex: 0 0 82px; cursor: pointer; text-align: center;
  transition: transform .15s;
}
.related-item:hover { transform: translateY(-2px); }
.related-item img {
  width: 78px; height: 78px; object-fit: cover;
  border-radius: 8px; border: 1px solid #eee;
}
.related-name {
  font-size: .65rem; color: #555; margin-top: 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.related-price { font-size: .7rem; font-weight: 700; color: #ee4d2d; margin-top: 2px; }
[data-theme="dark"] .modal-related-section { border-color: #333; }
[data-theme="dark"] .modal-related-section h4 { color: #555; }
[data-theme="dark"] .related-name  { color: #999; }
[data-theme="dark"] .related-item img { border-color: #333; }

/* ── COMPARE CARD BUTTON ─────────────────────────────────────── */
.card-compare-btn {
  position: absolute; bottom: 46px; right: 8px;
  background: rgba(255,255,255,0.92); border: 1.5px solid #ddd;
  border-radius: 6px; cursor: pointer; padding: 5px 8px;
  font-size: .72rem; color: #777; z-index: 2;
  transition: all .2s; line-height: 1;
}
.card-compare-btn:hover  { border-color: #ee4d2d; color: #ee4d2d; background: #fff; }
.card-compare-btn.active { border-color: #ee4d2d; color: #ee4d2d; background: #fff3f0; }
[data-theme="dark"] .card-compare-btn { background: rgba(30,30,30,0.92); border-color: #444; color: #aaa; }
[data-theme="dark"] .card-compare-btn:hover,
[data-theme="dark"] .card-compare-btn.active { border-color: #ff6b4a; color: #ff6b4a; }

/* ── COMPARE BAR ─────────────────────────────────────────────── */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 900; padding: 10px 20px;
  border-top: 2px solid #ee4d2d; display: none;
}
.compare-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.compare-title { font-weight: 700; font-size: .85rem; color: #ee4d2d; white-space: nowrap; }
.compare-slots { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.compare-slot {
  display: flex; align-items: center; gap: 7px;
  background: #fafafa; border: 1px solid #eee; border-radius: 8px;
  padding: 5px 8px; font-size: .76rem; max-width: 170px;
}
.compare-slot img { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; }
.compare-slot span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.compare-slot button { border: none; background: none; cursor: pointer; color: #bbb; padding: 0; font-size: .7rem; }
.compare-slot button:hover { color: #ee4d2d; }
.btn-compare-now {
  background: #ee4d2d; color: #fff; border: none; border-radius: 8px;
  padding: 8px 16px; cursor: pointer; font-size: .82rem; font-weight: 700;
  white-space: nowrap; transition: background .2s;
}
.btn-compare-now:disabled { background: #ccc; cursor: not-allowed; }
.btn-compare-now:not(:disabled):hover { background: #d44320; }
.compare-clear { border: none; background: none; cursor: pointer; color: #bbb; font-size: 1.1rem; padding: 4px; }
.compare-clear:hover { color: #ee4d2d; }
[data-theme="dark"] .compare-bar   { background: #1e1e1e; border-color: #ee4d2d; }
[data-theme="dark"] .compare-slot  { background: #2a2a2a; border-color: #444; color: #ccc; }

/* ── COMPARE MODAL ───────────────────────────────────────────── */
.compare-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.72); z-index: 1500;
  align-items: center; justify-content: center; padding: 16px;
}
.compare-modal.open { display: flex; }
.compare-box {
  background: #fff; border-radius: 16px;
  max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn .22s ease;
}
.compare-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #eee;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.compare-header h2 { font-size: 1.05rem; color: #ee4d2d; }
.compare-header button { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: #888; }
.compare-header button:hover { color: #ee4d2d; }
.compare-table { overflow-x: auto; padding: 0 16px 20px; }
.compare-tbl {
  width: 100%; border-collapse: collapse; min-width: 380px;
}
.compare-tbl th, .compare-tbl td {
  padding: 9px 12px; text-align: center;
  border-bottom: 1px solid #f0f0f0; vertical-align: middle; font-size: .83rem;
}
.compare-tbl th { font-weight: 700; color: #333; background: #fafafa; }
.compare-tbl tr:hover td { background: #fff8f6; }
.compare-row-label {
  text-align: left !important; font-weight: 600; color: #999;
  white-space: nowrap; font-size: .78rem; background: #fafafa !important;
}
.compare-tbl td img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
[data-theme="dark"] .compare-box    { background: #1e1e1e; color: #e0e0e0; }
[data-theme="dark"] .compare-header { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
[data-theme="dark"] .compare-header h2 { color: #ff7a5c; }
[data-theme="dark"] .compare-tbl th,
[data-theme="dark"] .compare-row-label,
[data-theme="dark"] .compare-tbl td  { border-color: #333; }
[data-theme="dark"] .compare-tbl th   { background: #2a2a2a; color: #ccc; }
[data-theme="dark"] .compare-row-label { background: #2a2a2a !important; color: #777; }
[data-theme="dark"] .compare-tbl tr:hover td { background: #252525; }
.modal-affiliate-note { font-size: .74rem; color: #bbb; text-align: center; }

/* ========== ADMIN: MULTI-IMAGE ========== */
#imagesList { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.img-field-row {
  display: flex; align-items: center; gap: 8px;
}
.img-num {
  width: 22px; text-align: right; font-size: .8rem; font-weight: 700; color: #aaa; flex-shrink: 0;
}
.img-url-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: .9rem; outline: none;
}
.img-url-input:focus { border-color: #ee4d2d; }
.btn-remove-img {
  background: #fff0f0; color: #ee4d2d; border: 1.5px solid #ee4d2d;
  border-radius: 6px; width: 34px; height: 34px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.btn-remove-img:hover { background: #ee4d2d; color: #fff; }
.btn-add-image {
  background: #fff3f0; color: #ee4d2d; border: 1.5px dashed #ee4d2d;
  border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: .85rem;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s;
}
.btn-add-image:hover { background: #ffe0d9; }

.admin-preview-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-prev-img {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1.5px solid #eee; background: #f9f9f9;
}
.admin-prev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ========== RESPONSIVE MODAL ========== */
@media (max-width: 640px) {
  .modal-box { flex-direction: column; max-height: 95vh; }
  .modal-gallery { width: 100%; height: 260px; border-right: none; border-bottom: 1px solid #eee; }
  .modal-main-display { flex: 1; }
  .modal-info { padding: 16px; }
  .modal-price { font-size: 1.3rem; }
}

/* ── ADMIN DASHBOARD ─────────────────────────────────────────── */
.dash-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.dash-card {
  display: flex; align-items: center; gap: 12px;
  background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: 14px 16px;
}
.dash-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #ee4d2d22; color: #ee4d2d;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.dash-icon.clicks { background: #1976d222; color: #1976d2; }
.dash-icon.sched  { background: #ff980022; color: #ff9800; }
.dash-icon.cat    { background: #4caf5022; color: #4caf50; }
.dash-value { font-size: 1.3rem; font-weight: 800; color: #333; line-height: 1; }
.dash-label { font-size: .72rem; color: #999; margin-top: 2px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .dash-row { grid-template-columns: 1fr; } }
.dash-panel {
  background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: 14px 16px;
}
.dash-panel h3 {
  font-size: .85rem; font-weight: 700; color: #888; text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.dash-top-item, .dash-hist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: .82rem;
}
.dash-top-item:last-child, .dash-hist-item:last-child { border-bottom: none; }
.dash-top-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.dash-top-name { flex: 1; color: #444; }
.dash-top-count { font-weight: 700; color: #1976d2; font-size: .78rem; white-space: nowrap; }
.hist-icon { font-size: .85rem; flex-shrink: 0; }
.hist-icon.create { color: #4caf50; }
.hist-icon.edit   { color: #1976d2; }
.hist-icon.delete { color: #f44336; }
.dash-hist-dt  { font-size: .72rem; color: #aaa; white-space: nowrap; }
.dash-hist-lbl { font-size: .7rem; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.dash-hist-lbl.create { background: #e8f5e9; color: #388e3c; }
.dash-hist-lbl.edit   { background: #e3f2fd; color: #1565c0; }
.dash-hist-lbl.delete { background: #fce4ec; color: #c62828; }
.dash-empty { color: #bbb; font-size: .82rem; text-align: center; padding: 12px 0; }
.admin-item-scheduled { border-left: 3px solid #ff9800; }

/* ── ADMIN TELEGRAM SHARE BUTTON ────────────────────────────── */
.btn-tg-share {
  background: #229ED9; color: #fff; border: none;
  border-radius: 6px; width: 34px; height: 34px;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: .9rem;
  transition: background .2s, transform .15s;
}
.btn-tg-share:hover { background: #1a8bbf; transform: scale(1.1); }

/* ── PWA INSTALL BANNER ──────────────────────────────────────── */
.pwa-banner {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1.5px solid #eee; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); z-index: 2000;
  max-width: 420px; width: calc(100% - 32px); padding: 14px 16px;
  animation: pwaSlideUp 0.4s ease;
}
@keyframes pwaSlideUp {
  from { transform: translateX(-50%) translateY(30px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.pwa-banner-inner {
  display: flex; align-items: center; gap: 12px;
}
.pwa-icon { font-size: 1.8rem; color: #ee4d2d; flex-shrink: 0; }
.pwa-banner-inner > div { flex: 1; }
.pwa-banner-inner strong { font-size: .9rem; color: #222; }
.pwa-banner-inner p { font-size: .78rem; color: #888; margin: 2px 0 0; }
.pwa-install-btn {
  background: #ee4d2d; color: #fff; border: none;
  border-radius: 8px; padding: 8px 14px; font-size: .82rem;
  font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.pwa-install-btn:hover { background: #d4401f; }
.pwa-close-btn {
  background: none; border: none; cursor: pointer;
  color: #bbb; font-size: .9rem; padding: 4px; flex-shrink: 0;
}
.pwa-close-btn:hover { color: #888; }
[data-theme="dark"] .pwa-banner { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .pwa-banner-inner strong { color: #e0e0e0; }
