/* Look-Offers.com - Modern Marketplace Stylesheet Part 1 */
:root {
  --bg-main: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-input: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #10b981;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background: var(--bg-main); color: var(--text-main); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; }

.fp-header { background: rgba(17, 24, 39, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.fp-navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.fp-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.fp-logo .logo-badge { background: linear-gradient(135deg, #3b82f6, #8b5cf6); padding: 4px 8px; border-radius: 6px; font-size: 11px; text-transform: uppercase; }
.fp-search-bar { flex: 1; max-width: 500px; position: relative; }
.fp-search-form { display: flex; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fp-search-form input { flex: 1; background: transparent; border: none; padding: 12px 16px; color: var(--text-main); font-size: 14px; outline: none; }
.fp-search-form button { background: var(--primary); border: none; color: #fff; padding: 0 20px; cursor: pointer; }
.fp-nav-actions { display: flex; align-items: center; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-card-hover); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.fp-hero { padding: 10px 0 24px; position: relative; }
.look-offers-hero-banner { position: relative; overflow: hidden; border-radius: 0 !important; min-height: 300px; height: 300px; width: 100%; display: flex; align-items: center; box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.16); background: #0f172a; }
.hero-banner-bg-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; display: block; }
.hero-banner-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.25) 75%, rgba(15, 23, 42, 0.05) 100%); }
[data-theme="dark"] .hero-banner-overlay { background: linear-gradient(90deg, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.78) 42%, rgba(11, 15, 25, 0.30) 75%, rgba(11, 15, 25, 0.08) 100%); }
.hero-banner-text-box { position: relative; z-index: 3; max-width: 620px; padding: 36px 44px; }
.hero-banner-phrase { font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); font-size: 30px; font-weight: 800; line-height: 1.3; color: #ffffff !important; margin: 0; letter-spacing: -0.02em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
@media (max-width: 992px) { .look-offers-hero-banner { min-height: 250px; height: 250px; } .hero-banner-text-box { max-width: 500px; padding: 26px 30px; } .hero-banner-phrase { font-size: 24px; } }
@media (max-width: 640px) { .look-offers-hero-banner { min-height: 200px; height: 200px; } .hero-banner-bg-photo { object-position: 65% center; } .hero-banner-overlay { background: linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.75) 100%); } .hero-banner-text-box { padding: 20px 18px; max-width: 100%; } .hero-banner-phrase { font-size: 18px; line-height: 1.35; } }

.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin: 16px 0 36px; }
@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
.cat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease-in-out; text-decoration: none; color: inherit; min-height: 98px; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.cat-icon-box { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: transform 0.2s ease; }
.cat-card:hover .cat-icon-box { transform: scale(1.08); }
.cat-card span { font-size: 11.5px; font-weight: 600; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 28px; color: var(--text-main); }
.cat-view-all-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  background: linear-gradient(135deg, #059669 0%, #16a34a 50%, #14b8a6 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.32);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.35;
}
.cat-view-all-pill:hover {
  background: linear-gradient(135deg, #10b981 0%, #22c55e 50%, #2dd4bf 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
  filter: brightness(1.06);
  opacity: 0.95;
}
[data-theme="dark"] .cat-view-all-pill {
  background: linear-gradient(135deg, #059669 0%, #16a34a 50%, #14b8a6 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 14px rgba(16, 185, 129, 0.40);
}
[data-theme="dark"] .cat-view-all-pill:hover {
  background: linear-gradient(135deg, #10b981 0%, #22c55e 50%, #2dd4bf 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 5px 18px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
  filter: brightness(1.08);
  opacity: 0.95;
}

.items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s; position: relative; }
.item-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.item-thumb { aspect-ratio: 4/3; background: #0f172a; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; width: 100%; }
.item-thumb a, .item-thumb-link { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.item-thumb img, .item-thumb a img, .item-thumb-link img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain !important; object-position: center !important; display: block; }
.item-badge-premium { position: absolute; top: 10px; left: 10px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.item-fav-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.item-fav-btn:hover, .item-fav-btn.active { background: #ef4444; }
.item-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.item-price { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #60a5fa; margin-bottom: 4px; }
.item-title { font-size: 14px; font-weight: 600; color: #2d3748; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding-top: 8px; border-top: 1px solid var(--border); }


.fp-suggest-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 6px; box-shadow: var(--shadow); z-index: 200; max-height: 360px; overflow-y: auto; display: none; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.suggest-item:hover { background: var(--bg-card-hover); }
.suggest-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.suggest-title { font-size: 13px; font-weight: 600; }
.suggest-price { font-size: 12px; color: #60a5fa; font-weight: 700; }

.flash-container { margin: 20px 0; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 12px; }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #34d399; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #f87171; }
.alert-info { background: rgba(59, 130, 246, 0.15); border: 1px solid #3b82f6; color: #60a5fa; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-main); font-size: 14px; outline: none; }
.form-control:focus { border-color: var(--primary); }
textarea.form-control { min-height: 100px; resize: vertical; }

.auth-card { max-width: 440px; margin: 40px auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.auth-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 20px; text-align: center; }

/* ITEM CARD & GALLERY ARCHITECTURE */
.item-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); margin: 20px 0 16px; }
.item-breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.item-breadcrumbs a:hover { color: var(--primary); }
.item-breadcrumbs .crumb-sep { opacity: 0.4; font-size: 10px; }
.item-breadcrumbs .crumb-current { color: var(--text-main); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }

.item-view-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 28px; margin-bottom: 40px; align-items: start; }
.item-main-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.item-side-col { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Item Gallery */
.item-gallery-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.item-gallery-stage { position: relative; width: 100%; aspect-ratio: 16/10; background: #070a12; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.item-gallery-main { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease, transform 0.3s ease; user-select: none; }
.item-gallery-stage:hover .item-gallery-main { transform: scale(1.015); }

.item-gallery-badge { position: absolute; bottom: 14px; left: 14px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.item-gallery-zoom { position: absolute; top: 14px; right: 14px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 14px; }
.item-gallery-zoom:hover { background: var(--primary); color: #fff; transform: scale(1.1); }

.item-gallery-thumbs { display: flex; gap: 10px; padding: 14px; background: var(--bg-card); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--primary) transparent; border-top: 1px solid var(--border); }
.item-gallery-thumbs::-webkit-scrollbar { height: 5px; }
.item-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.item-gallery-thumb { width: 76px; height: 60px; flex-shrink: 0; border-radius: 8px; object-fit: contain; object-position: center; cursor: pointer; border: 2px solid transparent; opacity: 0.65; transition: all 0.2s ease; background: #070a12; }
.item-gallery-thumb:hover { opacity: 0.95; transform: translateY(-2px); }
.item-gallery-thumb.active { border-color: var(--primary); opacity: 1; box-shadow: 0 0 10px var(--primary-glow); }

/* Item Details & Specs */
.item-card-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.item-box-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.item-specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.item-spec-item { display: flex; flex-direction: column; gap: 3px; background: var(--bg-input); padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.item-spec-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
.item-spec-val { font-size: 14px; font-weight: 600; color: var(--text-main); }

.item-description-text { font-size: 15px; line-height: 1.7; color: var(--text-main); white-space: pre-line; word-break: break-word; }

.item-meta-footer { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.item-meta-footer div { display: inline-flex; align-items: center; gap: 5px; }

/* Security Tips */
.item-safety-box { background: rgba(59, 130, 246, 0.06); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.item-safety-icon { font-size: 22px; color: #60a5fa; flex-shrink: 0; margin-top: 2px; }
.item-safety-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: #93c5fd; }
.item-safety-text p { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* Seller & Pricing Box */
.seller-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.item-price-tag { font-family: var(--font-display); font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #60a5fa, #93c5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; line-height: 1.2; }
.item-view-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; color: var(--text-main); }

.item-actions-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-phone-large { font-size: 15px; padding: 12px 20px; width: 100%; border-radius: var(--radius-sm); font-weight: 700; }
.btn-fav-large { font-size: 14px; padding: 11px 18px; width: 100%; border-radius: var(--radius-sm); position: static !important; }
.btn-fav-large.active { background: rgba(239, 68, 68, 0.15); border-color: #ef4444; color: #ef4444; }

.seller-profile-wrap { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 4px; }
.seller-profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.seller-avatar-circle { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; overflow: hidden; border: 2px solid var(--border); }
.seller-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.seller-name-row { font-size: 15px; font-weight: 700; color: var(--text-main); line-height: 1.2; margin-bottom: 4px; }
.seller-since-row { font-size: 12px; color: var(--text-muted); }

.seller-details-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.seller-details-list div { display: flex; align-items: center; gap: 8px; }
.seller-details-list i { width: 16px; text-align: center; color: var(--primary); }

.seller-view-all-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px 14px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-main); transition: all 0.2s; }
.seller-view-all-btn:hover { background: var(--bg-card-hover); border-color: var(--primary); color: #60a5fa; }

/* Share Bar */
.item-share-bar { display: flex; flex-direction: column; gap: 9px; padding-top: 13px; border-top: 1px solid var(--border); margin-top: 15px; }
.item-share-title { font-size: 11.5px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.item-share-icons { display: grid; grid-template-columns: repeat(21, 1fr); gap: 2.5px; width: 100%; }
.share-icon-btn { width: 100%; aspect-ratio: 1 / 1; min-width: 11px; max-width: 15px; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 7px; border: none; transition: all 0.15s ease-in-out; cursor: pointer; text-decoration: none; justify-self: center; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.share-icon-btn:hover { transform: translateY(-1px) scale(1.6); z-index: 10; box-shadow: 0 3px 8px rgba(0,0,0,0.5); opacity: 0.95; }

/* 100% Vibrant Official Brand Colors (Active by default) */
.share-yt { background: #ff0000; color: #fff; }
.share-wa { background: #25d366; color: #fff; }
.share-fb { background: #1877f2; color: #fff; }
.share-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.share-tt { background: #000000; color: #00f2fe; border: 1px solid #fe2c55 !important; }
.share-wc { background: #07c160; color: #fff; }
.share-tg { background: #229ed9; color: #fff; }
.share-sc { background: #fffc00; color: #000000; }
.share-x { background: #000000; color: #ffffff; border: 1px solid #333333 !important; }
.share-pin { background: #bd081c; color: #fff; }
.share-rd { background: #ff4500; color: #fff; }
.share-li { background: #0a66c2; color: #fff; }
.share-th { background: #101010; color: #ffffff; border: 1px solid #333333 !important; }
.share-dc { background: #5865f2; color: #fff; }
.share-vk { background: #0077ff; color: #fff; }
.share-ok { background: #ee8208; color: #fff; }
.share-vb { background: #7360f2; color: #fff; }
.share-tw { background: #9146ff; color: #fff; }
.share-ln { background: #06c755; color: #fff; }
.share-kt { background: #fee500; color: #3c1e1e; }
.share-vim { background: #1ab7ea; color: #fff; }
.share-qu { background: #b92b27; color: #fff; }
.share-md { background: #00ab6c; color: #fff; }
.share-tb { background: #36465d; color: #fff; }
.share-slk { background: #4a154b; color: #36c5f0; }
.share-sg { background: #3a76f0; color: #fff; }
.share-br { background: #000000; color: #ffffff; border: 1px solid #444444 !important; }
.share-pt { background: #ff424d; color: #fff; }
.share-sp { background: #1ed760; color: #fff; }
.share-scd { background: #ff5500; color: #fff; }
.share-gh { background: #24292e; color: #ffffff; }
.share-dr { background: #ea4c89; color: #fff; }
.share-be { background: #1769ff; color: #fff; }
.share-stm { background: #171a21; color: #66c0f4; border: 1px solid #2a475e !important; }
.share-rt { background: #0055ff; color: #fff; }
.share-bs { background: #0285ff; color: #fff; }
.share-fg { background: #f24e1e; color: #fff; }
.share-kk { background: #53fc18; color: #000000; }
.share-ms { background: #6364ff; color: #fff; }
.share-da { background: #05cc47; color: #fff; }
.share-ch { background: #f7b500; color: #000000; }
.share-icq { background: #76d800; color: #000000; }

/* Fullscreen Lightbox Modal */
.item-lightbox-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(10px); z-index: 99999; display: none; align-items: center; justify-content: center; }
.item-lightbox-modal.open { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.lightbox-close-btn { position: absolute; top: 20px; right: 25px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 100000; }
.lightbox-close-btn:hover { background: #ef4444; color: #fff; }
.lightbox-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.18); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 100000; }
.lightbox-nav-btn:hover { background: var(--primary); }
.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }

/* Related Items */
.related-items-section { margin-top: 36px; }
.related-items-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; color: var(--text-main); }

.search-layout { margin: 24px 0 40px; }

/* 4 Columns Responsive Catalog Grid */
.items-grid-5, .items-grid-4, .items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 1100px) {
  .items-grid-5, .items-grid-4, .items-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 800px) {
  .items-grid-5, .items-grid-4, .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 500px) {
  .items-grid-5, .items-grid-4, .items-grid { grid-template-columns: repeat(1, 1fr); gap: 10px; }
}

.items-grid-5 .item-card, .items-grid-4 .item-card, .items-grid .item-card {
  border-radius: 10px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: var(--bg-card);
  transition: all 0.2s ease-in-out;
}
.items-grid-5 .item-card:hover, .items-grid-4 .item-card:hover, .items-grid .item-card:hover {
  transform: translateY(-4px);
}
.items-grid-5 .item-thumb, .items-grid-4 .item-thumb, .items-grid .item-thumb {
  background: transparent !important;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.items-grid-5 .item-thumb img,
.items-grid-5 .item-thumb a img,
.items-grid-4 .item-thumb img,
.items-grid-4 .item-thumb a img,
.items-grid .item-thumb img,
.items-grid .item-thumb a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background-color: transparent !important;
  display: block;
}
.items-grid-5 .item-info, .items-grid-4 .item-info, .items-grid .item-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}
.items-grid-5 .item-price, .items-grid-4 .item-price, .items-grid .item-price {
  font-size: 15px;
  margin-bottom: 2px;
  line-height: 1.2;
  font-weight: 600;
}
.items-grid-5 .item-title, .items-grid-4 .item-title, .items-grid .item-title {
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.3;
  height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: normal;
  color: #2d3748;
}
[data-theme="dark"] .items-grid-5 .item-title,
[data-theme="dark"] .items-grid-4 .item-title,
[data-theme="dark"] .items-grid .item-title,
[data-theme="dark"] .item-title {
  color: #e2e8f0;
}
.items-grid-5 .item-badge-premium {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  top: 8px;
  left: 8px;
  border-radius: 4px;
}
.items-grid-5 .item-fav-btn {
  width: 28px;
  height: 28px;
  font-size: 13px;
  top: 8px;
  right: 8px;
}
.items-grid-5 .item-meta {
  padding-top: 6px;
  margin-top: auto;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #64748b;
}
.items-grid-5 .item-date {
  color: #64748b !important;
}

/* Filter Drawer (Offcanvas) */
.filter-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}
.filter-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 370px;
  max-width: 92vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 10001;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.28);
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.filter-drawer.open {
  transform: translateX(0);
}
.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.filter-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}
.filter-drawer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.015em;
}
.filter-drawer-subtitle {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}
[data-theme="dark"] .filter-drawer-subtitle {
  color: #94a3b8;
}
.filter-drawer-close {
  width: 34px;
  height: 34px;
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid rgba(100, 116, 139, 0.15);
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}
.filter-drawer-close:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  transform: rotate(90deg);
}
.filter-drawer-body {
  padding: 22px 22px 32px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Filter Cards Container & Individual Cards (Apple / Airbnb Luxury Minimalism) */
.filter-cards-container {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.filter-card {
  border-radius: 13px;
  padding: 9px 11px 11px;
  border-width: 1px;
  border-style: solid;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
.filter-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.filter-card-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.filter-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .filter-card-title {
  color: #cbd5e1;
}

/* 1. Поисковый запрос (Нежно-голубой) */
.filter-card-search {
  background: rgba(2, 132, 199, 0.04);
  border-color: rgba(2, 132, 199, 0.15);
}
.filter-card-search .filter-card-icon {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
[data-theme="dark"] .filter-card-search {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}
[data-theme="dark"] .filter-card-search .filter-card-icon {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

/* 2. Категория (Изумрудно-бирюзовый) */
.filter-card-category {
  background: rgba(13, 148, 136, 0.04);
  border-color: rgba(13, 148, 136, 0.15);
}
.filter-card-category .filter-card-icon {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}
[data-theme="dark"] .filter-card-category {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(45, 212, 191, 0.2);
}
[data-theme="dark"] .filter-card-category .filter-card-icon {
  background: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
}

/* 3. Город (Светло-мятный) */
.filter-card-city {
  background: rgba(22, 163, 74, 0.04);
  border-color: rgba(22, 163, 74, 0.15);
}
.filter-card-city .filter-card-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}
[data-theme="dark"] .filter-card-city {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
}
[data-theme="dark"] .filter-card-city .filter-card-icon {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
}

/* 4. Цена, ₽ (Светло-персиковый / оранжевый) */
.filter-card-price {
  background: rgba(217, 119, 6, 0.04);
  border-color: rgba(217, 119, 6, 0.15);
}
.filter-card-price .filter-card-icon {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}
[data-theme="dark"] .filter-card-price {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}
[data-theme="dark"] .filter-card-price .filter-card-icon {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

/* 5. Суперкатегория (Пастельно-лавандовый) */
.filter-card-supercat {
  background: rgba(124, 58, 237, 0.04);
  border-color: rgba(124, 58, 237, 0.15);
}
.filter-card-supercat .filter-card-icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}
[data-theme="dark"] .filter-card-supercat {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(167, 139, 250, 0.2);
}
[data-theme="dark"] .filter-card-supercat .filter-card-icon {
  background: rgba(167, 139, 250, 0.18);
  color: #c084fc;
}

/* 6. Состояние (Пастельно-лимонный / желтый) */
.filter-card-condition {
  background: rgba(202, 138, 4, 0.04);
  border-color: rgba(202, 138, 4, 0.15);
}
.filter-card-condition .filter-card-icon {
  background: rgba(202, 138, 4, 0.12);
  color: #ca8a04;
}
[data-theme="dark"] .filter-card-condition {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(250, 204, 21, 0.2);
}
[data-theme="dark"] .filter-card-condition .filter-card-icon {
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
}

/* 7. Сортировка (Благородный ультра-светлый серый) */
.filter-card-sort {
  background: rgba(71, 85, 105, 0.04);
  border-color: rgba(71, 85, 105, 0.15);
}
.filter-card-sort .filter-card-icon {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}
[data-theme="dark"] .filter-card-sort {
  background: rgba(71, 85, 105, 0.1);
  border-color: rgba(148, 163, 184, 0.2);
}
[data-theme="dark"] .filter-card-sort .filter-card-icon {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

/* Contrast Crisp White Field Wrappers Inside Cards */
.filter-card-field-wrap {
  position: relative;
  width: 100%;
}
.filter-inner-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}
.filter-inner-icon.icon-search { color: #0284c7; }
.filter-inner-icon.icon-city { color: #16a34a; }
.filter-inner-icon.icon-supercat { color: #7c3aed; }
.filter-inner-icon.icon-condition { color: #ca8a04; }
.filter-inner-icon.icon-sort { color: #475569; }

[data-theme="dark"] .filter-inner-icon.icon-search { color: #38bdf8; }
[data-theme="dark"] .filter-inner-icon.icon-city { color: #4ade80; }
[data-theme="dark"] .filter-inner-icon.icon-supercat { color: #c084fc; }
[data-theme="dark"] .filter-inner-icon.icon-condition { color: #facc15; }
[data-theme="dark"] .filter-inner-icon.icon-sort { color: #cbd5e1; }

.filter-input-card,
.filter-select-card {
  width: 100%;
  height: 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  padding: 0 11px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.filter-input-card.with-icon,
.filter-select-card.with-icon {
  padding-left: 32px;
}
[data-theme="dark"] .filter-input-card,
[data-theme="dark"] .filter-select-card {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.filter-select-card {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  cursor: pointer;
}
.filter-card-chevron {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s;
}

/* Card Focus Rings */
.filter-card-search:focus-within .filter-input-card {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.filter-card-city:focus-within .filter-select-card {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.filter-card-city:focus-within .filter-card-chevron {
  color: #16a34a;
}
.filter-card-supercat:focus-within .filter-select-card {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.filter-card-supercat:focus-within .filter-card-chevron {
  color: #7c3aed;
}
.filter-card-condition:focus-within .filter-select-card {
  border-color: #ca8a04;
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.12);
}
.filter-card-condition:focus-within .filter-card-chevron {
  color: #ca8a04;
}
.filter-card-sort:focus-within .filter-select-card {
  border-color: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.12);
}
.filter-card-sort:focus-within .filter-card-chevron {
  color: #475569;
}

/* Price Range Dual Fields */
.filter-price-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-price-subfield {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0 10px;
  height: 38px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
[data-theme="dark"] .filter-price-subfield {
  background: #1e293b;
  border-color: #334155;
}
.filter-price-subfield:focus-within {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}
.filter-price-label {
  font-size: 11px;
  font-weight: 600;
  color: #d97706;
  margin-right: 4px;
  user-select: none;
}
[data-theme="dark"] .filter-price-label {
  color: #fbbf24;
}
.filter-price-card-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
[data-theme="dark"] .filter-price-card-input {
  color: #f8fafc;
}
.filter-price-card-input::-webkit-outer-spin-button,
.filter-price-card-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Category Dropdown Trigger White Styling Inside Card */
.filter-card-category .custom-cat-trigger {
  height: 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .filter-card-category .custom-cat-trigger {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.filter-card-category:focus-within .custom-cat-trigger,
.filter-card-category .custom-cat-dropdown.is-open .custom-cat-trigger {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Actions in Drawer */
.filter-drawer-actions {
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-btn-apply {
  width: 100%;
  padding: 11px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.28);
  transition: all 0.2s ease;
}
.filter-btn-apply:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.35);
}
.filter-btn-apply:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}
.filter-btn-reset {
  width: 100%;
  padding: 8px 14px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.filter-btn-reset:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Filter Trigger Button in Toolbar */
.filter-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.filter-trigger-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.filter-count-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  line-height: 1.4;
}

/* Active Filters Chips Bar */
.active-filters-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.filter-chip-remove {
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-left: 2px;
}
.filter-chip-remove:hover {
  color: #ef4444;
}

/* Infinite Scroll Loader & Sentinel */
.infinite-scroll-sentinel {
  height: 30px;
  margin: 20px 0;
  pointer-events: none;
}
.infinite-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}
.infinite-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: infiniteSpin 0.75s linear infinite;
}
@keyframes infiniteSpin {
  to { transform: rotate(360deg); }
}
.infinite-scroll-end {
  text-align: center;
  padding: 36px 0 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  border-top: 1px dashed var(--border);
  margin-top: 30px;
}
.item-card-appear {
  animation: cardAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.fp-footer { background: #070a12; border-top: 1px solid var(--border); padding: 40px 0 20px; margin-top: auto; font-size: 14px; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; font-family: var(--font-display); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }

/* USER CABINET STYLES */
.body-ua { padding: 30px 0 60px; }
.body-ua .container.primary { display: flex; gap: 30px; align-items: flex-start; }

#user-menu { width: 220px; flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 8px; position: sticky; top: 90px; }
#user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-sm); border-left: 3px solid transparent; transition: all 0.2s; position: relative; margin-bottom: 2px; }
#user-menu a:hover { background: var(--bg-card-hover); color: var(--text-main); }
#user-menu a.active { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border-left-color: var(--primary); }
#user-menu a .counter { margin-left: auto; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; line-height: 1.2; }
#user-menu a.logout { margin-top: 16px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding-top: 14px; }

#user-main { flex: 1; min-width: 0; }
#user-main h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 6px; }
#user-main h2 { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-bottom: 24px; }

.headers { padding-left: 80px; position: relative; margin-bottom: 28px; min-height: 66px; }
.headers .img-container { position: absolute; left: 0; top: 0; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }
.headers .img-container .camera-icon { position: absolute; color: rgba(255,255,255,0.7); opacity: 0; transition: 0.2s; }
.headers .img-container:hover .camera-icon { opacity: 1; }
.headers .img-container:hover img { filter: brightness(0.5); }
.headers h1 { font-size: 24px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.headers h2 { font-size: 14px; color: var(--text-muted); margin: 0; }

.card-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card-box .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: all 0.2s ease; display: flex; flex-direction: column; position: relative; }
.card-box .card:hover { transform: translateY(-2px); border-color: rgba(59, 130, 246, 0.4); box-shadow: var(--shadow); }
.card-box .card .icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(59, 130, 246, 0.12); color: #60a5fa; display: flex; align-items: center; justify-content: center; font-size: 22px; position: relative; margin-bottom: 14px; }
.card-box .card .icon .count { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-card); }
.card-box .card .header { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card-box .card .description { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.profile-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.profile-box .wrap { display: grid; grid-template-columns: 1fr 280px; gap: 30px; }
.profile-box .row { margin-bottom: 16px; }
.profile-box .row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.profile-box .row label .req { color: #ef4444; }
.profile-box .row label a { font-size: 12px; color: var(--primary); margin-left: 8px; text-decoration: underline; }
.profile-box .input-box input, .profile-box .input-box select, .profile-box .input-box textarea { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-main); font-size: 14px; outline: none; }
.profile-box .input-box input:focus, .profile-box .input-box select:focus, .profile-box .input-box textarea:focus { border-color: var(--primary); }
.profile-box .input-box.has-toggle { position: relative; }
.profile-box .input-box .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.control-group.profile-img { margin-bottom: 20px; }
.control-group.profile-img .controls { display: flex; align-items: center; gap: 16px; }
.user-img .img-preview { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary); background: var(--bg-input); }
.user-img .img-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; background: var(--primary); }

.profile-summary-box { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.profile-summary-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.completeness-bar-wrap { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.completeness-bar { height: 100%; background: linear-gradient(90deg, #10b981, #3b82f6); border-radius: 10px; }
.quick-stats { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.quick-stats .stat-line { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 6px; }

/* User Items Box & Actions */
.user-items-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 14px; }
.user-items-search-form { display: flex; flex-wrap: wrap; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; align-items: flex-end; }
.user-items-search-form .control-group { flex: 1; min-width: 160px; }
.user-items-search-form .control-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text-muted); }
.user-items-search-form select, .user-items-search-form input { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-main); font-size: 13px; outline: none; }
.user-items-search-form .actions { display: flex; gap: 8px; }

.items-box { display: flex; flex-direction: column; gap: 14px; }
.items-box .item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 22px; transition: 0.2s; min-height: 160px; }
.items-box .item.inactive { opacity: 0.75; }
.items-box .item:hover { border-color: rgba(59, 130, 246, 0.3); }
.items-box .picture-wrap { width: 185px; height: 140px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #070a12; display: flex; align-items: center; justify-content: center; align-self: center; }
.items-box .picture-wrap a { display: block; width: 100%; height: 100%; }
.items-box .picture-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 12px; }
.items-box .data-wrap { flex: 1; min-width: 0; }
.items-box .data-wrap .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.items-box .data-wrap .price { font-weight: 700; font-size: 16px; color: #60a5fa; }
.items-box .data-wrap .labels { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.items-box .data-wrap .label { padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.items-box .data-wrap .label.active { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.items-box .data-wrap .label.sold { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.items-box .data-wrap .label.reserved { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.items-box .data-wrap .label.pending { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.items-box .data-wrap .label.inactive { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.items-box .data-wrap .title { font-size: 16px; font-weight: 600; margin-bottom: 4px; display: block; color: var(--text-main); }
.items-box .data-wrap .title:hover { color: var(--primary); }
.items-box .data-wrap .description { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }

.items-box .buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; border-top: 1px solid var(--border); padding-top: 10px; }
.items-box .buttons .btn-link { background: none; border: none; padding: 0; font-size: 13px; font-weight: 600; cursor: pointer; color: #0284c7; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; transition: color 0.15s ease, opacity 0.15s ease; }
.items-box .buttons .btn-link i, .items-box .buttons .btn-link svg { color: #0284c7; font-size: 13px; transition: color 0.15s ease; }
.items-box .buttons .btn-link:hover { color: #0369a1; }
.items-box .buttons .btn-link:hover i, .items-box .buttons .btn-link:hover svg { color: #0369a1; }
.items-box .buttons .delim { color: var(--border); }

/* Alerts / Subscriptions Box */
.alerts-box { display: flex; flex-direction: column; gap: 16px; }
.alerts-box .alert { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.alerts-box .alert .head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.alerts-box .alert .head-row strong { font-size: 16px; font-family: var(--font-display); }
.alerts-box .alert .head-row .data span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.alerts-box .alert .head-row .data a.show-technical-details { font-size: 12px; color: var(--primary); text-decoration: underline; margin-top: 4px; display: inline-block; }
.alerts-box .alert .details { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 6px; margin: 12px 0; font-size: 12px; }
.alerts-box .alert .items { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.alerts-box .alert .show-all { font-size: 13px; font-weight: 600; color: #60a5fa; display: block; margin-bottom: 12px; }
.sub-items-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sub-item-row { display: flex; align-items: center; gap: 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; transition: all 0.2s ease; position: relative; }
.sub-item-row:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.sub-item-thumb { width: 64px; height: 52px; min-width: 64px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #0b1120; display: flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid rgba(255,255,255,0.05); }
.sub-item-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.2s ease; }
.sub-item-row:hover .sub-item-thumb img { transform: scale(1.06); }
.sub-item-no-thumb { color: var(--text-muted); font-size: 16px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sub-item-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-item-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sub-item-title { font-size: 13.5px; font-weight: 700; color: var(--text-main); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; transition: color 0.15s ease; }
.sub-item-title:hover { color: #60a5fa; }
.sub-item-price { font-size: 14px; font-weight: 700; color: #60a5fa; white-space: nowrap; flex-shrink: 0; }
.sub-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-item-footer { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); flex-wrap: nowrap; overflow: hidden; }
.sub-meta-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sub-meta-item i { font-size: 10px; opacity: 0.8; }
.sub-meta-dot { opacity: 0.4; }
.sub-item-action-btn { width: 28px; height: 28px; min-width: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--text-muted); text-decoration: none; font-size: 11px; transition: all 0.2s ease; margin-left: 2px; }
.sub-item-row:hover .sub-item-action-btn { background: var(--primary); color: #ffffff; transform: translateX(2px); }
.empty-sub-feed { font-size: 13px; color: var(--text-muted); padding: 10px 0; }

/* Seller Public Profile Card */
.seller-public-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow); }
.seller-avatar-wrap { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary); flex-shrink: 0; }
.seller-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.seller-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; background: var(--primary); color: #fff; }
.seller-main-info { flex: 1; min-width: 240px; }
.seller-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.seller-title-row h1 { font-size: 22px; font-family: var(--font-display); }
.badge-company { background: rgba(59, 130, 246, 0.15); color: #60a5fa; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-individual { background: rgba(16, 185, 129, 0.15); color: #34d399; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.seller-meta-row { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.seller-bio-text { font-size: 14px; line-height: 1.5; color: var(--text-main); }
.seller-actions-col { display: flex; flex-direction: column; gap: 10px; }

/* Pagination */
.paginate { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.paginate a { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-main); }
.paginate a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.paginate a:hover:not(.active) { background: var(--bg-card-hover); }

.empty { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }

@media (max-width: 900px) {
  .body-ua .container.primary { flex-direction: column; }
  #user-menu { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
  #user-menu a { flex: 1; min-width: 140px; }
  .card-box { grid-template-columns: 1fr; }
  .profile-box .wrap { grid-template-columns: 1fr; }
  .items-box .item { flex-direction: column; }
  .items-box .picture-wrap { width: 100%; height: 180px; }
}

@media (max-width: 900px) {
  .search-layout, .item-view-layout, .footer-grid { grid-template-columns: 1fr; }
  .fp-navbar { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .fp-search-bar { order: 3; max-width: 100%; }
}

@keyframes pulse-live {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}


/* Seller Public Profile Redesign - Premium Edition Part 1 */
.author-profile-page { padding: 24px 0 70px; }
.author-header-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 32px 36px; margin-bottom: 38px; box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04); }
.author-card-body { padding: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 36px; position: relative; }
.author-identity-section { display: flex; gap: 28px; align-items: center; flex: 1; min-width: 0; }
.author-avatar-container { flex-shrink: 0; margin-top: 0; position: relative; }
.author-avatar-frame { width: 140px; height: 140px; min-width: 140px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.18); background: linear-gradient(135deg, #1e3a8a, #0d9488); box-shadow: 0 10px 28px -4px rgba(13, 148, 136, 0.28); position: relative; overflow: hidden; }
.author-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; font-weight: 300; letter-spacing: -0.03em; color: #ffffff; font-family: var(--font-display); }
.author-online-indicator { position: absolute; bottom: 10px; right: 10px; width: 15px; height: 15px; border-radius: 50%; background: #10b981; border: 2.5px solid var(--bg-card); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); z-index: 3; }
.author-info-content { flex: 1; min-width: 0; padding-top: 0; }
.author-title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.author-name-heading { font-size: 32px; font-weight: 800; color: var(--text-main); font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.author-verified-badge { color: #38bdf8; font-size: 20px; display: inline-flex; align-items: center; filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.3)); }
.author-badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text-muted); }
.badge-pill-individual { border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.badge-pill-company { border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.author-meta-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.author-meta-tag { display: inline-flex; align-items: center; gap: 6px; }
.author-meta-tag i { color: var(--text-muted); font-size: 13px; opacity: 0.8; }
.author-status-live { display: inline-flex; align-items: center; gap: 6px; color: #10b981; font-weight: 600; font-size: 13px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; display: inline-block; animation: liveDotPulse 2s infinite ease-in-out; }
@keyframes liveDotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }
.author-bio-container { margin: 10px 0 14px; padding: 10px 14px; background: var(--bg-input); border-radius: 10px; border: 1px solid var(--border); }
.author-bio-text { font-size: 13.5px; color: var(--text-main); line-height: 1.55; margin: 0; }
.btn-reveal-contacts-premium { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg, #0284c7, #2563eb); color: #ffffff !important; border: none; border-radius: 8px; padding: 8px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25); transition: all 0.25s ease-in-out; }
.btn-reveal-contacts-premium:hover { background: linear-gradient(135deg, #0369a1, #1d4ed8); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(37, 99, 235, 0.35); }



/* Seller Public Profile Redesign - Part 2 */
.author-interactive-panel { display: flex; flex-direction: column; gap: 8px; min-width: 280px; max-width: 320px; padding-top: 0; }
.author-primary-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.author-action-btn { flex: 1; min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: none; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none; }
.author-action-btn.btn-subscribe { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #ffffff !important; box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25); }
.author-action-btn.btn-subscribe:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(37, 99, 235, 0.35); }
.author-action-btn.btn-subscribed { background: transparent; border: 1px solid rgba(239, 68, 68, 0.4); color: #ef4444 !important; }
.author-action-btn.btn-subscribed:hover { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; }
.author-action-btn.btn-call { background: linear-gradient(135deg, #059669, #10b981); color: #ffffff !important; box-shadow: 0 3px 12px rgba(16, 185, 129, 0.25); }
.author-action-btn.btn-call:hover { background: linear-gradient(135deg, #047857, #059669); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(16, 185, 129, 0.35); }
.author-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.author-service-btn { border-radius: 9px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.25s ease; text-align: left; outline: none; border: 1px solid transparent; text-decoration: none; }
.author-service-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.btn-service-events { background: rgba(245, 158, 11, 0.09); border-color: rgba(245, 158, 11, 0.22); color: #b45309; }
.btn-service-events:hover { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.35); }
.btn-service-events .service-btn-icon { background: rgba(245, 158, 11, 0.18); color: #d97706; }
.btn-service-streams { background: rgba(236, 72, 153, 0.09); border-color: rgba(236, 72, 153, 0.22); color: #be185d; }
.btn-service-streams:hover { background: rgba(236, 72, 153, 0.16); border-color: rgba(236, 72, 153, 0.35); }
.btn-service-streams .service-btn-icon { background: rgba(236, 72, 153, 0.18); color: #db2777; }
.btn-service-discounts { background: rgba(16, 185, 129, 0.09); border-color: rgba(16, 185, 129, 0.22); color: #047857; }
.btn-service-discounts:hover { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.35); }
.btn-service-discounts .service-btn-icon { background: rgba(16, 185, 129, 0.18); color: #059669; }
.btn-service-videos { background: rgba(239, 68, 68, 0.09); border-color: rgba(239, 68, 68, 0.22); color: #b91c1c; }
.btn-service-videos:hover { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.35); }
.btn-service-videos .service-btn-icon { background: rgba(239, 68, 68, 0.18); color: #dc2626; }
.btn-service-default { background: rgba(99, 102, 241, 0.09); border-color: rgba(99, 102, 241, 0.22); color: #4338ca; }
.btn-service-default:hover { background: rgba(99, 102, 241, 0.16); border-color: rgba(99, 102, 241, 0.35); }
.btn-service-default .service-btn-icon { background: rgba(99, 102, 241, 0.18); color: #4f46e5; }
.service-btn-icon { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.service-btn-text { display: flex; flex-direction: column; min-width: 0; }
.service-btn-title { font-size: 12px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.service-btn-sub { font-size: 10px; color: var(--text-muted); line-height: 1.2; margin-top: 1px; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-listings-section { margin-top: 10px; }
.author-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.author-section-heading-wrap { display: flex; align-items: center; gap: 12px; }
.author-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-main); margin: 0; }
.author-items-counter { background: var(--bg-input); border: 1px solid var(--border); color: var(--primary); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.author-filter-toolbar { margin-bottom: 24px; }
.filter-toolbar-inner { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 6px 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); gap: 8px; }
.filter-field { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.filter-field-search { flex: 2; }
.filter-field-category { flex: 1.2; position: relative; }
.filter-icon { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.filter-input { width: 100%; background: transparent; border: none; outline: none; font-size: 14px; color: var(--text-main); font-family: inherit; }
.filter-input::placeholder { color: var(--text-muted); }
.filter-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.filter-select { width: 100%; background: transparent; border: none; outline: none; font-size: 14px; color: var(--text-main); font-family: inherit; cursor: pointer; appearance: none; padding-right: 20px; }
.filter-select option { background: var(--bg-card); color: var(--text-main); }
.filter-select-arrow { position: absolute; right: 12px; pointer-events: none; font-size: 11px; color: var(--text-muted); }
.filter-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-filter-submit { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #ffffff; border: none; border-radius: 10px; padding: 9px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3); }
.btn-filter-submit:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); transform: translateY(-1px); }

/* Seller Public Profile Redesign - Part 3 */
.author-listings-feed { display: flex; flex-direction: column; gap: 14px; }
.author-item-card { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; gap: 20px; box-shadow: var(--shadow); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); position: relative; }
.author-item-card:hover { transform: translateY(-2px); border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.25); }
.author-item-card.item-card-premium { border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(to right, rgba(245, 158, 11, 0.03), var(--bg-card)); }
.author-item-media { width: 170px; height: 125px; min-width: 170px; border-radius: 12px; overflow: hidden; background: #0f172a; position: relative; display: flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.06); }
.author-item-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.author-item-card:hover .author-item-img { transform: scale(1.05); }
.author-item-no-image { color: var(--text-muted); font-size: 24px; display: flex; align-items: center; justify-content: center; }
.author-item-badge-premium { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #ffffff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); display: inline-flex; align-items: center; gap: 4px; }
.author-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.author-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.author-item-title { font-size: 16px; font-weight: 700; color: var(--text-main); text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.15s ease; }
.author-item-title:hover { color: var(--primary); }
.author-item-price-wrap { flex-shrink: 0; text-align: right; }
.author-item-price { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #3b82f6; white-space: nowrap; }
.badge-price-negotiable { display: inline-block; background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.author-item-description { font-size: 13px; color: var(--text-muted); line-height: 1.45; margin: 0 0 10px 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.author-item-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.meta-tag-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-tag-item i { color: var(--text-muted); font-size: 11px; }
.meta-tag-dot { opacity: 0.4; }
.author-item-view-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-input); border: 1px solid var(--border); color: var(--text-main); padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; flex-shrink: 0; }
.author-item-card:hover .author-item-view-btn { background: var(--primary); border-color: var(--primary); color: #ffffff; transform: translateX(2px); }
.author-empty-listings { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 50px 20px; text-align: center; box-shadow: var(--shadow); }
.author-empty-listings .empty-icon { font-size: 48px; color: var(--text-muted); opacity: 0.5; margin-bottom: 16px; }
.author-empty-listings h3 { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.author-empty-listings p { font-size: 14px; color: var(--text-muted); max-width: 440px; margin: 0 auto 16px; }
.btn-empty-reset { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #ffffff; padding: 8px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; }
.btn-empty-reset:hover { background: var(--primary-hover); transform: translateY(-1px); }

@media (max-width: 992px) {
  .author-card-body { flex-direction: column; align-items: stretch; gap: 20px; }
  .author-interactive-panel { max-width: 100%; min-width: unset; padding-top: 0; }
}

@media (max-width: 768px) {
  .author-card-body { padding: 0 0 16px; }
  .author-identity-section { flex-direction: column; align-items: flex-start; gap: 16px; }
  .author-avatar-container { margin-top: 0; }
  .author-avatar-frame { width: 100px; height: 100px; min-width: 100px; border-radius: 14px; }
  .author-avatar-fallback { font-size: 42px; }
  .author-name-heading { font-size: 22px; }
  .author-services-grid { grid-template-columns: 1fr; }
  .filter-toolbar-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-divider { display: none; }
  .btn-filter-submit { width: 100%; justify-content: center; }
  .author-item-card { flex-direction: column; gap: 14px; }
  .author-item-media { width: 100%; height: 180px; min-width: unset; }
  .author-item-head { flex-direction: column; gap: 6px; }
  .author-item-price-wrap { text-align: left; }
}

.btn-filter-reset { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; color: var(--text-muted); text-decoration: none; font-size: 13px; transition: all 0.2s ease; }
.btn-filter-reset:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }

/* MODULE: REAL-TIME CLASSIFIEDS CHAT */
.chat-page-container { max-width: 1200px; margin: 20px auto 40px; padding: 0 15px; }
.chat-card-wrap { display: flex; height: 720px; max-height: calc(100vh - 160px); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.chat-threads-panel { width: 360px; min-width: 300px; border-right: 1px solid var(--border); display: flex; flex-direction: column; background: var(--bg-card); flex-shrink: 0; }
.chat-threads-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.02); }
.chat-header-title { font-size: 16px; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.chat-unread-total-badge { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.chat-threads-list { flex: 1; overflow-y: auto; }
.chat-empty-threads { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.chat-empty-threads i { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.chat-empty-threads p { font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.chat-empty-threads span { font-size: 12px; line-height: 1.4; display: block; }
.chat-thread-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background 0.15s; }
.chat-thread-item:hover { background: rgba(255, 255, 255, 0.03); }
.chat-thread-item.active { background: rgba(59, 130, 246, 0.08); border-left: 3px solid var(--primary); }
.chat-thread-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #0f172a; }
.chat-thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-thread-info { flex: 1; min-width: 0; }
.chat-thread-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.chat-partner-name { font-weight: 600; font-size: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.chat-thread-item-title { font-size: 11px; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.chat-thread-preview { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-preview-text { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-dialog-panel { flex: 1; display: flex; flex-direction: column; background: var(--bg-card); min-width: 0; }
.chat-dialog-header { padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255, 255, 255, 0.02); }
.chat-back-btn { display: none; color: var(--text-main); font-size: 16px; padding: 6px; }
.chat-dialog-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-dialog-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-dialog-user-meta { display: flex; flex-direction: column; }
.chat-dialog-user-name { font-weight: 700; font-size: 15px; color: var(--text-main); }
.chat-dialog-user-role { font-size: 11px; color: var(--text-muted); }
.chat-dialog-item-widget { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.04); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); max-width: 320px; }
.chat-widget-thumb { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.chat-widget-info { display: flex; flex-direction: column; min-width: 0; }
.chat-widget-title { font-size: 12px; font-weight: 600; color: var(--text-main); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-widget-title:hover { color: var(--primary); }
.chat-widget-price { font-size: 12px; font-weight: 700; color: #60a5fa; }
.chat-messages-stream { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: rgba(0, 0, 0, 0.15); }
.chat-stream-empty { margin: auto; text-align: center; color: var(--text-muted); }
.chat-stream-empty i { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }
.chat-msg-row { display: flex; width: 100%; }
.chat-msg-in { justify-content: flex-start; }
.chat-msg-out { justify-content: flex-end; }
.chat-msg-bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; position: relative; word-break: break-word; }
.chat-msg-in .chat-msg-bubble { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); color: var(--text-main); border-bottom-left-radius: 2px; }
.chat-msg-out .chat-msg-bubble { background: #2563eb; color: #ffffff; border-bottom-right-radius: 2px; }
.chat-msg-bubble.chat-msg-rejected { background: rgba(239, 68, 68, 0.15) !important; border: 1px dashed #ef4444 !important; color: #fca5a5 !important; font-style: italic; }
.chat-msg-text { font-size: 14px; line-height: 1.45; }
.chat-msg-time { font-size: 10px; margin-top: 4px; opacity: 0.75; text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.chat-read-icon { font-size: 10px; }
.chat-dialog-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.chat-send-form { display: flex; gap: 10px; align-items: center; }
.chat-message-input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: 24px; padding: 10px 18px; color: var(--text-main); font-size: 14px; outline: none; resize: none; max-height: 120px; font-family: inherit; }
.chat-message-input:focus { border-color: var(--primary); }
.chat-send-btn { width: 42px; height: 42px; border-radius: 50%; background: #2563eb; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.chat-send-btn:hover { background: #1d4ed8; transform: scale(1.05); }
.chat-no-selection { margin: auto; text-align: center; color: var(--text-muted); padding: 40px 20px; }
.chat-no-selection i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.chat-no-selection h3 { font-size: 18px; color: var(--text-main); margin-bottom: 8px; }
.btn-chat-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #2563eb; color: #fff !important; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: var(--radius-sm); text-decoration: none; transition: 0.2s; cursor: pointer; border: none; }
.btn-chat-action:hover { background: #1d4ed8; color: #fff; }
.header-chat-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-main); text-decoration: none; padding: 6px 10px; }
.header-chat-badge { position: absolute; top: -2px; right: 2px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center; }
@media (max-width: 768px) {
  .chat-card-wrap { height: calc(100vh - 120px); position: relative; }
  .chat-threads-panel { width: 100%; display: none; }
  .chat-dialog-panel { display: none; }
  .chat-panel-active { display: flex !important; width: 100%; }
  .chat-back-btn { display: inline-flex; }
  .chat-dialog-item-widget { display: none; }
}

.chat-thread-badge { background: #2563eb; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; flex-shrink: 0; }


/* Search Supercategories Navigation Toolbar */
.search-supercat-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.search-supercat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); border: 1px solid transparent; line-height: 1.2; }
.search-supercat-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.search-supercat-pill .supercat-icon { font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

/* 1. Все объявления (Default) */
.search-supercat-pill.pill-all { background: linear-gradient(135deg, rgba(59, 130, 246, 0.09), rgba(99, 102, 241, 0.04)); border-color: rgba(59, 130, 246, 0.25); color: var(--text-main); }
.search-supercat-pill.pill-all .supercat-icon { color: #2563eb; }
.search-supercat-pill.pill-all:hover { background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.08)); border-color: rgba(59, 130, 246, 0.4); }
.search-supercat-pill.pill-all.active { background: linear-gradient(135deg, #2563eb, #3b82f6); border-color: #2563eb; color: #ffffff !important; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35); }
.search-supercat-pill.pill-all.active .supercat-icon { color: #ffffff; }

/* 2. Акции и скидки (Discounts) */
.search-supercat-pill.pill-discounts { background: linear-gradient(135deg, rgba(239, 68, 68, 0.09), rgba(244, 63, 94, 0.04)); border-color: rgba(239, 68, 68, 0.25); color: var(--text-main); }
.search-supercat-pill.pill-discounts .supercat-icon { color: #e11d48; }
.search-supercat-pill.pill-discounts:hover { background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(244, 63, 94, 0.08)); border-color: rgba(239, 68, 68, 0.4); }
.search-supercat-pill.pill-discounts.active { background: linear-gradient(135deg, #e11d48, #f43f5e); border-color: #e11d48; color: #ffffff !important; box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35); }
.search-supercat-pill.pill-discounts.active .supercat-icon { color: #ffffff; }

/* 3. Видеообзоры (Video Reviews) */
.search-supercat-pill.pill-video_reviews { background: linear-gradient(135deg, rgba(139, 92, 246, 0.09), rgba(99, 102, 241, 0.04)); border-color: rgba(139, 92, 246, 0.25); color: var(--text-main); }
.search-supercat-pill.pill-video_reviews .supercat-icon { color: #7c3aed; }
.search-supercat-pill.pill-video_reviews:hover { background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(99, 102, 241, 0.08)); border-color: rgba(139, 92, 246, 0.4); }
.search-supercat-pill.pill-video_reviews.active { background: linear-gradient(135deg, #7c3aed, #8b5cf6); border-color: #7c3aed; color: #ffffff !important; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35); }
.search-supercat-pill.pill-video_reviews.active .supercat-icon { color: #ffffff; }

/* 4. Мероприятия и события (Events) */
.search-supercat-pill.pill-events { background: linear-gradient(135deg, rgba(2, 132, 199, 0.09), rgba(6, 182, 212, 0.04)); border-color: rgba(2, 132, 199, 0.25); color: var(--text-main); }
.search-supercat-pill.pill-events .supercat-icon { color: #0284c7; }
.search-supercat-pill.pill-events:hover { background: linear-gradient(135deg, rgba(2, 132, 199, 0.16), rgba(6, 182, 212, 0.08)); border-color: rgba(2, 132, 199, 0.4); }
.search-supercat-pill.pill-events.active { background: linear-gradient(135deg, #0284c7, #0ea5e9); border-color: #0284c7; color: #ffffff !important; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35); }
.search-supercat-pill.pill-events.active .supercat-icon { color: #ffffff; }

/* 5. Прямые эфиры (Live Streams) */
.search-supercat-pill.pill-live_streams { background: linear-gradient(135deg, rgba(220, 38, 38, 0.09), rgba(239, 68, 68, 0.04)); border-color: rgba(220, 38, 38, 0.25); color: var(--text-main); }
.search-supercat-pill.pill-live_streams .supercat-icon { color: #dc2626; }
.search-supercat-pill.pill-live_streams:hover { background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(239, 68, 68, 0.08)); border-color: rgba(220, 38, 38, 0.4); }
.search-supercat-pill.pill-live_streams.active { background: linear-gradient(135deg, #dc2626, #ef4444); border-color: #dc2626; color: #ffffff !important; box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35); }
.search-supercat-pill.pill-live_streams.active .supercat-icon { color: #ffffff; }

/* Fresh Offers Pill Widget */
.fresh-offers-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 55%, #e0f2fe 100%);
  border: 1px solid rgba(13, 148, 136, 0.28);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #0f766e !important;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  cursor: default;
  transition: all 0.25s ease;
  user-select: none;
}
.fresh-offers-pill:hover {
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 148, 136, 0.4);
  transform: translateY(-1px);
}
[data-theme="dark"] .fresh-offers-pill {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18) 0%, rgba(6, 182, 212, 0.14) 55%, rgba(59, 130, 246, 0.10) 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  color: #2dd4bf !important;
}
[data-theme="dark"] .fresh-offers-pill:hover {
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  border-color: rgba(45, 212, 191, 0.5);
}

/* View All Offers Text Link */
.view-all-offers-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: normal;
  text-decoration: none;
  color: #2563eb !important;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}
.view-all-offers-btn .view-all-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.view-all-offers-btn:hover {
  background: transparent;
  border: none;
  color: #1d4ed8 !important;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}
.view-all-offers-btn:hover .view-all-arrow {
  transform: translateX(3px);
}
.view-all-offers-btn:active {
  color: #1e40af !important;
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .view-all-offers-btn {
  background: transparent;
  border: none;
  color: #60a5fa !important;
  box-shadow: none;
}
[data-theme="dark"] .view-all-offers-btn:hover {
  background: transparent;
  border: none;
  color: #93c5fd !important;
  box-shadow: none;
}

/* All Categories Outline Button */
.all-categories-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: normal;
  text-decoration: none;
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #0f766e !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  user-select: none;
}
.all-categories-btn .all-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.all-categories-btn:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: #0d9488;
  color: #0f766e !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
  transform: translateY(-1px);
  text-decoration: none;
}
.all-categories-btn:hover .all-cat-icon {
  transform: scale(1.1);
}
.all-categories-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.12);
}

[data-theme="dark"] .all-categories-btn {
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #2dd4bf !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .all-categories-btn:hover {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.7);
  color: #5eead4 !important;
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.22);
}

/* ==========================================================================
   MEGA MENU CATEGORIES MODAL (Hierarchy Tree)
   ========================================================================== */
.categories-mega-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.categories-mega-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.categories-mega-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1240px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(18px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.categories-mega-modal.is-open .categories-mega-modal-dialog {
  transform: scale(1) translateY(0);
}
[data-theme="dark"] .categories-mega-modal-dialog {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.categories-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  flex-shrink: 0;
}
[data-theme="dark"] .categories-modal-header {
  background: #0f172a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.categories-modal-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 14px;
  width: 340px;
  max-width: 100%;
  transition: all 0.2s ease;
}
[data-theme="dark"] .categories-modal-search {
  background: #1e293b;
  border-color: #334155;
}
.categories-modal-search:focus-within {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  background: #ffffff;
}
[data-theme="dark"] .categories-modal-search:focus-within {
  background: #0f172a;
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}
.categories-modal-search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: inherit;
  margin-left: 8px;
  font-family: inherit;
}

.categories-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  padding: 0;
}
[data-theme="dark"] .categories-modal-close-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.categories-modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}
[data-theme="dark"] .categories-modal-close-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  color: #f87171;
}

.categories-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}

.categories-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .categories-mega-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .categories-modal-search {
    width: 240px;
  }
}
@media (max-width: 640px) {
  .categories-mega-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .categories-modal-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
  }
  .categories-modal-search {
    width: 100%;
  }
  .categories-modal-body {
    padding: 16px 18px;
  }
}

.supercat-tree-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
}
[data-theme="dark"] .supercat-tree-col {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}
.supercat-tree-col:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
}
[data-theme="dark"] .supercat-tree-col:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Level 1 - Supercategory Header */
.supercat-level1-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  user-select: none;
}
.supercat-level1-header:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.supercat-level1-title {
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  line-height: 1.25;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.supercat-level1-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Level 2 - Category Group & Link */
.cat-level2-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-level2-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none !important;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.18s ease;
}
[data-theme="dark"] .cat-level2-link {
  color: #e2e8f0;
}
.cat-level2-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0d9488 !important;
  transform: translateX(3px);
}
[data-theme="dark"] .cat-level2-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #2dd4bf !important;
}
.cat-level2-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* Level 3 - Subcategories List */
.subcat-level3-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  margin: 2px 0 6px 14px;
  border-left: 2px solid #e2e8f0;
}
[data-theme="dark"] .subcat-level3-list {
  border-left-color: #334155;
}
.subcat-level3-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
  text-decoration: none !important;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
[data-theme="dark"] .subcat-level3-link {
  color: #94a3b8;
}
.subcat-level3-link:hover {
  color: #0d9488 !important;
  text-decoration: underline !important;
  transform: translateX(3px);
}
[data-theme="dark"] .subcat-level3-link:hover {
  color: #2dd4bf !important;
}
.subcat-marker {
  color: #94a3b8;
  font-size: 11px;
  font-weight: normal;
  opacity: 0.8;
  user-select: none;
}


/* ==========================================================================
   Custom Category Dropdown (Search Filters Drawer)
   ========================================================================== */
.custom-cat-dropdown {
  position: relative;
  width: 100%;
}

.custom-cat-trigger {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  background: var(--bg-input, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  color: var(--text-main, #0f172a);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  outline: none;
}
[data-theme="dark"] .custom-cat-trigger {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.custom-cat-trigger:hover {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.custom-cat-dropdown.is-open .custom-cat-trigger {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  background: var(--bg-card);
}
.custom-cat-trigger-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.custom-cat-trigger-icon {
  color: #0d9488;
  font-size: 12px;
  flex-shrink: 0;
}
.custom-cat-trigger-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  font-weight: 500;
}
.custom-cat-chevron {
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-cat-dropdown.is-open .custom-cat-chevron {
  transform: rotate(180deg);
  color: #0d9488;
}

/* Custom Dropdown Menu Panel */
.custom-cat-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 6px 16px -2px rgba(15, 23, 42, 0.08);
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  display: none;
  animation: customCatDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
[data-theme="dark"] .custom-cat-menu {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5);
  scrollbar-color: #475569 transparent;
}
.custom-cat-dropdown.is-open .custom-cat-menu {
  display: block;
}

/* All Categories Default Option */
.custom-cat-all-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(100, 116, 139, 0.06);
  border: 1px solid rgba(100, 116, 139, 0.15);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.custom-cat-all-option:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.3);
  color: #0f766e;
}
.custom-cat-all-option.is-selected {
  background: rgba(13, 148, 136, 0.14);
  border-color: #0d9488;
  color: #0f766e;
  font-weight: 700;
}
.custom-cat-check {
  font-size: 11px;
  color: #0d9488;
}

/* Level 1: Supercategory Group & Header */
.custom-cat-super-group {
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--super-bg, rgba(59, 130, 246, 0.05));
  border: 1px solid var(--super-border, rgba(59, 130, 246, 0.2));
  padding: 4px;
}
.custom-cat-super-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--super-color, #2563eb);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  user-select: none;
}
.custom-cat-super-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--super-color, #2563eb);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
.custom-cat-super-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}
.custom-cat-super-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--super-color, #2563eb);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Common Option Row */
.custom-cat-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.custom-cat-opt-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

/* Level 2: Parent Category Row */
.custom-cat-level2-option {
  padding: 6px 10px;
  margin: 1px 0;
  border-radius: 6px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
}
[data-theme="dark"] .custom-cat-level2-option {
  color: #f1f5f9;
}
.custom-cat-level2-bullet {
  color: #0d9488;
  font-size: 10.5px;
  flex-shrink: 0;
}
.custom-cat-level2-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-cat-level2-option:hover {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  transform: translateX(2px);
}
[data-theme="dark"] .custom-cat-level2-option:hover {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
}
.custom-cat-level2-option.is-selected {
  background: rgba(13, 148, 136, 0.16);
  color: #0f766e;
  font-weight: 700;
}
[data-theme="dark"] .custom-cat-level2-option.is-selected {
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
}

/* Level 3: Subcategory Row */
.custom-cat-level3-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 3px;
}
.custom-cat-level3-option {
  padding: 4.5px 10px 4.5px 26px;
  margin: 1px 0;
  border-radius: 6px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 400;
}
[data-theme="dark"] .custom-cat-level3-option {
  color: #94a3b8;
}
.custom-cat-tree-branch {
  color: #94a3b8;
  font-size: 11px;
  font-weight: normal;
  flex-shrink: 0;
}
.custom-cat-level3-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-cat-level3-option:hover {
  background: rgba(13, 148, 136, 0.08);
  color: #0d9488;
  padding-left: 29px;
}
[data-theme="dark"] .custom-cat-level3-option:hover {
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
}
.custom-cat-level3-option.is-selected {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
  font-weight: 600;
  padding-left: 29px;
}
[data-theme="dark"] .custom-cat-level3-option.is-selected {
  background: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
}

/* Items count badge */
.custom-cat-count {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}
[data-theme="dark"] .custom-cat-count {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

@keyframes customCatDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Custom Supercategory Dropdown (Search Filters Drawer)
   ========================================================================== */
.custom-supercat-dropdown {
  position: relative;
  width: 100%;
}

.custom-supercat-trigger {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  outline: none;
}
[data-theme="dark"] .custom-supercat-trigger {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
.custom-supercat-trigger:hover {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.custom-supercat-dropdown.is-open .custom-supercat-trigger {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.custom-supercat-trigger-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.custom-supercat-trigger-icon {
  font-size: 12px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.custom-supercat-trigger-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
}
.custom-supercat-chevron {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.custom-supercat-dropdown.is-open .custom-supercat-chevron {
  transform: rotate(180deg);
  color: #8b5cf6;
}

/* Custom Dropdown Menu Panel */
.custom-supercat-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10050;
  padding: 5px;
  display: none;
  animation: supercatMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .custom-supercat-menu {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
}
.custom-supercat-dropdown.is-open .custom-supercat-menu {
  display: block;
}

@keyframes supercatMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Supercat Option Row */
.custom-supercat-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  color: var(--opt-color, #334155);
}
.custom-supercat-opt-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.custom-supercat-opt-icon {
  font-size: 12px;
  width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--opt-color, #64748b);
  flex-shrink: 0;
}
.custom-supercat-opt-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--opt-color, #334155);
  transition: color 0.18s ease;
}
[data-theme="dark"] .custom-supercat-opt-name {
  color: var(--opt-color, #cbd5e1);
}

.custom-supercat-option:hover {
  background: var(--opt-bg, rgba(139, 92, 246, 0.08));
  transform: translateX(2px);
}
.custom-supercat-option.is-selected {
  background: var(--opt-bg, rgba(139, 92, 246, 0.12));
  font-weight: 700;
}
.custom-supercat-check {
  font-size: 11px;
  color: var(--opt-color, #8b5cf6);
  flex-shrink: 0;
}

/* Modal Footer */
.categories-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 12px;
}
[data-theme="dark"] .categories-modal-footer {
  background: #0b1120;
  border-top-color: rgba(255, 255, 255, 0.08);
}



/* ==========================================================================
   Supercategory General Calendar Badge Link (Airy & Airbnb-Inspired)
   ========================================================================== */
.supercat-item-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supercat-calendar-badge-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 0px !important;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .supercat-calendar-badge-link {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.supercat-calendar-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .supercat-calendar-badge-link:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.supercat-cal-badge-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.supercat-cal-badge-icon-box {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.supercat-calendar-badge-link:hover .supercat-cal-badge-icon-box {
  transform: scale(1.08);
}

.supercat-cal-badge-icon-box svg {
  display: block;
}

.supercat-cal-badge-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.supercat-cal-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .supercat-cal-badge-title {
  color: #f1f5f9;
}

.supercat-cal-badge-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  line-height: 1.2;
}

.supercat-cal-badge-arrow {
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.supercat-calendar-badge-link:hover .supercat-cal-badge-arrow {
  transform: translateX(3px);
  color: var(--text-main, #0f172a);
}

/* Individual supercategory color palettes */
.badge-link-discounts {
  background: rgba(239, 68, 68, 0.035);
  border-color: rgba(239, 68, 68, 0.18);
}
.badge-link-discounts:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}
.badge-link-discounts .supercat-cal-badge-icon-box {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.badge-link-video_reviews {
  background: rgba(139, 92, 246, 0.035);
  border-color: rgba(139, 92, 246, 0.18);
}
.badge-link-video_reviews:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.35);
}
.badge-link-video_reviews .supercat-cal-badge-icon-box {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.badge-link-events {
  background: rgba(2, 132, 199, 0.035);
  border-color: rgba(2, 132, 199, 0.18);
}
.badge-link-events:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.35);
}
.badge-link-events .supercat-cal-badge-icon-box {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.badge-link-live_streams {
  background: rgba(220, 38, 38, 0.035);
  border-color: rgba(220, 38, 38, 0.18);
}
.badge-link-live_streams:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
}
.badge-link-live_streams .supercat-cal-badge-icon-box {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

/* ==========================================================================
   PROMOTION COLOR HIGHLIGHT PALETTE MODAL (PASTEL & VIBRANT PALETTES)
   ========================================================================== */
.promo-color-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .promo-color-modal-dialog {
  background: #1e293b;
  color: #f1f5f9;
}

.promo-palette-group {
  margin-bottom: 12px;
}

.promo-palette-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .promo-palette-group-title {
  color: #94a3b8;
}

.promo-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  box-sizing: border-box;
}

.palette-swatch {
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 4px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  user-select: none;
  box-sizing: border-box;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.palette-swatch:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.palette-swatch.is-selected {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.45) !important;
}

/* Light swatches - strict dark slate text */
.palette-swatch.is-light {
  color: #0f172a;
}

/* Dark/Vibrant swatches - strict crisp white text */
.palette-swatch.is-dark {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Specific swatches classes */
.swatch-pastel-yellow { background: #fef08a; }
.swatch-pastel-green { background: #bbf7d0; }
.swatch-pastel-blue { background: #bae6fd; }
.swatch-pastel-orange { background: #fed7aa; }
.swatch-pastel-pink { background: #fbcfe8; }
.swatch-pastel-lavender { background: #e9d5ff; }

.swatch-vibrant-lime { background: #ccff00; }
.swatch-vibrant-green { background: #16a34a; }
.swatch-vibrant-orange { background: #ea580c; }
.swatch-vibrant-red { background: #dc2626; }
.swatch-vibrant-blue { background: #2563eb; }
.swatch-vibrant-fuchsia { background: #db2777; }

/* Preview box */
.promo-color-preview-container {
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 14px;
}

[data-theme="dark"] .promo-color-preview-container {
  background: #0f172a;
  border-color: #334155;
}

.promo-color-preview-box {
  background: #fef08a26;
  border: 1.5px solid #fef08a;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

[data-theme="dark"] .promo-color-preview-box {
  color: #f8fafc;
}

.promo-color-preview-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.promo-color-preview-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



