/* css/style.css */

/* Fonts */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/plusjakartasans-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/plusjakartasans-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/plusjakartasans-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('../assets/fonts/materialsymbolsoutlined.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

/* Variables & Themes */
/* Téma: Tokyo Night (Predvolená tmavá) */
:root {
  --bg-primary: #1a1b26;
  --bg-secondary: #24283b;
  --text-primary: #a9b1d6;
  --text-secondary: #787c99;
  --accent: #7c4dff; /* Kráľovská fialová */
  --accent-hover: #651fff; /* Tmavšia fialová pre hover */
  --accent-shadow: rgba(124, 77, 255, 0.3);
  --accent-bg: rgba(124, 77, 255, 0.1);
  --border-color: #414868;
  --logo-filter: invert(100%) invert(81%) sepia(13%) saturate(414%) hue-rotate(192deg) brightness(77%) contrast(142%); /* Logo ladí s textom #a9b1d6 */
}

/* Téma: Solarized Light (Svetlá) */
:root.light-theme {
  --bg-primary: #f3f0e7; /* Krémová s jemným zelenkavým nádychom */
  --bg-secondary: #e6e2d3; /* Trochu tmavšia pre karty */
  --text-primary: #2d3748; /* Tmavosivá pre dobrú čitateľnosť */
  --text-secondary: #5a6a82; /* Tlmená modrosivá */
  --accent: #ff7300; /* Moderná, svieža oranžová */
  --accent-hover: #e66800; /* Tmavšia oranžová pre hover */
  --accent-shadow: rgba(255, 115, 0, 0.3);
  --accent-bg: rgba(255, 115, 0, 0.1);
  --border-color: #cbd5e0; /* Svetlá sivá pre okraje */
  --logo-filter: invert(100%) invert(31%) sepia(13%) saturate(630%) hue-rotate(179deg) brightness(84%) contrast(124%); /* Logo ladí s textom #2d3748 */
}

/* Global Custom Premium Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 20px;
  border: 2.5px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox Support */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-primary);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px; /* Zmenšený základný font ako na GitHube */
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0 !important;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 22px; /* Zmenšené logo na veľkosť písma/tlačidla */
  filter: var(--logo-filter);
  transition: filter 0.3s;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto; /* Posunie menu a všetko napravo k pravému okraju */
  font-size: 14px; /* Menšie písmo pre menu */
}

.btn {
  background-color: var(--accent);
  color: #ffffff; /* Biele písmo pre lepší kontrast */
  padding: 0 20px;
  height: 42px;
  box-sizing: border-box;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent; /* Zabezpečí rovnakú výšku s btn-secondary */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px; /* Menšie písmo pre tlačidlo */
  box-shadow: 0 4px 12px var(--accent-shadow);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0 16px;
  height: 42px;
  box-sizing: border-box;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-premium-search {
    height: 42px;
    padding: 0 30px;
    border-radius: 12px;
    background-color: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px var(--accent-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.btn-premium-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-shadow);
}

.btn-premium-search:active {
    transform: translateY(0);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--border-color);
}

/* Hero / Search */
.hero {
  padding: 30px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.search-bar {
  display: flex;
  max-width: 800px; /* Zväčšená šírka pre lepšie využitie priestoru */
  margin: 30px auto 0;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
}

.search-bar input:focus {
  outline: none;
}

.search-bar button {
  background-color: var(--accent);
  border: none;
  color: var(--bg-primary); /* Tmavá farba v tmavej téme pre lepší kontrast na svetlomodrej */
  padding: 0 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Categories */
.section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 30px 0 15px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-color: var(--accent);
}

.category-card .icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 8px;
}

.category-name {
  font-weight: 600;
  font-size: 13px;
}

/* Ads Grid */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.listing-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.listing-image {
  height: 200px;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
}

.listing-image .icon {
  font-size: 48px;
}

.listing-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.listing-price {
  font-size: 16px;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 15px;
}

.listing-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: auto;
}

.listing-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.listing-meta .icon {
  font-size: 16px;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
  margin-top: auto;
}

.footer-content p {
  font-size: 14px;
  margin: 0;
}

.footer-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.separator {
  margin: 0 10px;
  opacity: 0.4;
}

.ai-text {
  color: var(--accent);
  font-weight: 600;
}

/* Forms */
.form-container {
  max-width: 400px;
  margin: 60px auto;
  background-color: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Profile */
.profile-container {
  margin-top: 30px;
}

.profile-header {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  position: relative;
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--accent) 0%, #24283b 100%);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 150px;
  left: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-avatar span {
  font-size: 40px;
  color: var(--text-secondary);
}

.profile-info {
  padding: 70px 30px 30px;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 5px;
}

.profile-bio {
  color: var(--text-secondary);
  margin-bottom: 15px;
  max-width: 600px;
}

.profile-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Stats & Cards (Shared for Admin & Affiliate) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: var(--bg-secondary);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Media Queries pre mobilné zariadenia */
@media (max-width: 768px) {
  /* Hlavička */
  .header-content {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: relative;
  }
  
  .hamburger {
    display: block !important;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    gap: 15px;
    align-items: flex-start;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a, .nav-links button {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* Vyhľadávač */
  .search-bar {
    flex-direction: column;
    gap: 10px;
    background: none;
    border: none;
    box-shadow: none;
  }
  
  .search-bar input, .search-bar div {
    width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-secondary) !important;
    margin-bottom: 5px;
  }
  
  .search-bar button {
    width: 100%;
    border-radius: 8px;
    padding: 15px;
    justify-content: center;
  }
  
  /* Hero sekcia */
  .hero {
    padding: 40px 15px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  /* Kategórie */
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 10px !important;
  }
  
  .category-card {
    padding: 15px !important;
  }
  
  .category-card span {
    font-size: 28px !important;
  }

  /* AI Modal na mobile */
  .ai-input-group {
    flex-direction: column !important;
  }
  
  .ai-input-group button {
    width: 100% !important;
    padding: 12px !important;
    justify-content: center;
  }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 14px;
}

.autocomplete-item:hover {
    background-color: var(--bg-primary);
    color: var(--accent);
}

.autocomplete-item .icon {
    font-size: 16px;
    color: var(--text-secondary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Select Component (Premium Unified Look) */
.custom-select-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    height: 42px; /* Fixná výška */
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box; /* Dôležité pre presnú výšku */
}

.custom-select-container:hover .custom-select-trigger {
    border-color: var(--accent);
}

.custom-select-trigger .icon {
    color: var(--text-secondary);
}

.custom-select-trigger .arrow {
    margin-left: auto;
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.3s;
}

.custom-select-container.open .custom-select-trigger .arrow {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-container.open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-item {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
    text-align: left;
}

.custom-select-item:hover {
    background-color: var(--accent-bg);
    color: var(--accent);
}

.custom-select-item.selected {
    font-weight: 700;
    color: var(--accent);
    background-color: transparent;
}

/* Premium Visual Radius Selector (Airbnb Style Pills) */
#radius-custom-select .custom-select-menu {
    width: 300px;
    padding: 16px;
    box-sizing: border-box;
}

#radius-custom-select .radius-menu-title {
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 15px 0 10px 0;
    letter-spacing: 0.8px;
    padding-left: 2px;
}

#radius-custom-select .radius-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

#radius-custom-select .custom-select-item {
    padding: 10px 5px;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

#radius-custom-select .custom-select-item:hover:not(.disabled) {
    border-color: var(--accent);
    background-color: var(--accent-bg);
    color: var(--accent);
    transform: translateY(-1.5px);
}

#radius-custom-select .custom-select-item.selected {
    background-color: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-shadow);
    font-weight: 850;
}

#radius-custom-select .custom-select-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Bulletproof suppression of Google Translate widgets, banners, and layout shifts */
html,
body,
html.translated-ltr,
html.translated-rtl,
html.translated-ltr body,
html.translated-rtl body,
body.translated-ltr,
body.translated-rtl,
.translated-ltr,
.translated-rtl {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
}


iframe.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    display: none !important;
}

/* =========================================================================
   APP LAYOUT (Dashboard Style pre podstránky - Magnific inšpirácia)
   ========================================================================= */
body.app-mode {
    background-color: var(--bg-primary);
    margin: 0;
    overflow-x: hidden;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.app-sidebar {
    width: 300px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: -300px; /* Predvolene schovaný bočný panel */
    top: 0 !important;
    height: 100vh;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

/* Otvorený stav pre hover */
.app-sidebar.hover-open {
    left: 0 !important;
}

/* Pripnutý stav bočného panelu */
.app-layout.sidebar-pinned .app-sidebar {
    left: 0;
}

.app-sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Sidebar hlavička */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 5px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sidebar-logo .icon {
    font-size: 24px;
    color: var(--accent);
}

.logo-img {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: var(--logo-filter);
    transition: filter 0.3s;
}

.logo-img--full {
    height: 22px; /* Celé logo s textom – trochu nižšie pre ladný vzhľad */
    width: auto;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    border-radius: 8px;
    transition: background 0.2s;
}
.sidebar-toggle:hover { background: var(--accent-bg); color: var(--accent); }

/* Create Tlačidlo */
.sidebar-create-btn {
    margin: 0 15px 15px 15px;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-create-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-shadow);
}

/* Navigácia v sidebare */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.2s;
}

.sidebar-link.subcategory-link {
    padding: 4px 12px;
    font-size: 13.5px;
    line-height: 1.25;
}

.sidebar-link:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.sidebar-link.active {
    background-color: var(--accent-bg);
    color: var(--accent);
}

.sidebar-link .icon {
    font-size: 20px;
}

.sidebar-section-title {
    padding: 6px 12px 2px 12px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    margin-bottom: 2px;
}

/* Rozdelovacia čiara v menu */
.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 15px;
}

/* Spodná časť sidebaru (ikony) */
.sidebar-footer {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.sidebar-footer-icon {
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    transition: all 0.2s;
}
.sidebar-footer-icon:hover {
    background-color: var(--accent-bg);
    color: var(--text-primary);
}

/* Hlavný obsah */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-primary);
    padding-left: 0;
    transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Odsadenie obsahu, keď je sidebar pripnutý na desktope */
.app-layout.sidebar-pinned .app-main {
    padding-left: 300px;
}

.app-topbar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0 !important;
    z-index: 900;
}

/* Logo v hornej lište (topbar) */
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.topbar-logo .icon {
    color: var(--accent);
    font-size: 22px;
}

/* Keď je bočný panel pripnutý na desktope, alebo otvorený na hover, skryjeme logo v hornej lište */
@media (min-width: 993px) {
    .app-layout.sidebar-pinned .topbar-logo,
    .app-sidebar.hover-open ~ .app-main .topbar-logo {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-15px);
    }
}

.app-content {
    flex-grow: 1;
    padding: 0; /* padding riešia samotné stránky (container) */
    position: relative;
}

/* Zbalený stav sidebaru (Mini) */
.app-sidebar.mini {
    width: 80px;
}
.app-sidebar.mini .sidebar-logo span,
.app-sidebar.mini .sidebar-create-btn span,
.app-sidebar.mini .sidebar-link span.text,
.app-sidebar.mini .sidebar-section-title {
    display: none;
}
.app-sidebar.mini .sidebar-create-btn {
    padding: 12px;
    justify-content: center;
}
.app-sidebar.mini .sidebar-create-btn .icon { margin: 0; }
.app-sidebar.mini .sidebar-link {
    justify-content: center;
    padding: 12px;
}
.app-sidebar.mini .sidebar-link .icon { margin: 0; }
.app-sidebar.mini .sidebar-footer {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

/* Responzivita pre mobily */
@media (max-width: 992px) {
    .app-layout.sidebar-pinned .app-main {
        padding-left: 0 !important;
    }
    .app-sidebar {
        position: fixed;
        left: -300px !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.2);
    }
    .app-sidebar.hover-open,
    .app-sidebar.mobile-open {
        left: 0 !important;
    }
}

/* --- Premium Auth System Styles --- */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 16px;
}
.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 800px; /* Široké pre horizontálne zobrazenie na desktopoch */
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    transition: all 0.3s ease;
    position: relative;
}
.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
    min-height: 280px;
}
.auth-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-logo {
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 20px;
}
.auth-logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--accent-bg);
    border: 2px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-shadow);
}
.auth-logo-icon .material-symbols-outlined { font-size: 28px !important; }
.auth-heading {
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.auth-heading h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}
.auth-heading p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 6px 0 0;
    font-weight: 500;
}
.auth-divider {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 12px auto 0;
}
.auth-left-footer {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.auth-left-footer p {
    margin-bottom: 6px;
}
.auth-switch-btn {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: opacity 0.2s;
}
.auth-switch-btn:hover { text-decoration: underline; opacity: 0.8; }

/* Responzivita pre tablety a mobilné zariadenia */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        max-width: 420px;
        padding: 30px 24px;
        gap: 24px;
    }
    .auth-left {
        border-right: none;
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
        min-height: auto;
    }
}

/* Form inputs & interactive styles */
.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 17px !important;
    pointer-events: none;
    line-height: 1;
}
.auth-input-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 38px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.auth-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}
.auth-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
    z-index: 10;
}
.auth-eye-btn:hover { color: var(--accent); }
.auth-eye-btn .material-symbols-outlined { font-size: 17px !important; }

/* Skrytie natívneho tlačidla Edge pre odhalenie hesla */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 20px;
}
.auth-row .auth-check-label {
    margin-bottom: 0;
    align-items: center;
}
.auth-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}
.auth-check-label input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 1px;
}
.auth-check-label input[type="checkbox"]:hover {
    border-color: var(--accent);
}
.auth-check-label input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
}
.auth-forgot {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.auth-forgot:hover { opacity: 0.75; }
.auth-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 4px 14px var(--accent-shadow);
}
.auth-submit:hover { opacity: 0.9; transform: translateY(-1px); }

.auth-error {
    background: rgba(220, 50, 47, 0.08);
    border: 1px solid rgba(220, 50, 47, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    color: #dc322f;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-success {
    background: rgba(34, 180, 120, 0.08);
    border: 1px solid rgba(34, 180, 120, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    color: #22b478;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 5px;
    padding-left: 2px;
    opacity: 0.7;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Custom premium tooltips for Verified Sellers */
.verified-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.verified-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-align: center;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 999;
    width: 260px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.verified-tooltip-wrap:hover .verified-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.verified-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

/* Ad Detail Typography Styles */
.ad-detail-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.ad-detail-price {
    font-size: 22px;
    font-weight: 850;
    color: var(--accent);
    letter-spacing: -0.5px;
    line-height: 1;
}

@media (max-width: 768px) {
    .ad-detail-title {
        font-size: 15px;
        font-weight: 700;
    }
    .ad-detail-price {
        font-size: 18px;
        font-weight: 800;
    }
}

/* Ad Detail Request Badges (Symmetrical Green Pill Badges) */
.request-status-badge {
    background: rgba(76, 209, 55, 0.08);
    border: 1px solid rgba(76, 209, 55, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    color: #2ecc71;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
}
