:root {
  --color-primary: #CC0000;
  --color-primary-hover: #990000;
  --color-primary-light: rgba(204, 0, 0, 0.1);
  --color-primary-glow: rgba(204, 0, 0, 0.15);
  --color-bg: #F5F0EB;
  --color-bg-alt: #FAF7F2;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-text-muted: #9A9A9A;
  --color-border: #E8E3DE;
  --color-border-light: #F0ECE6;
  --color-success: #2E7D32;
  --color-success-light: rgba(46, 125, 50, 0.1);
  --color-danger: #CC0000;
  --color-danger-light: rgba(204, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 160px;
  --max-w: 1200px;
}

html.dark {
  --color-primary: #FF4D4D;
  --color-primary-hover: #E63E3E;
  --color-primary-light: rgba(255, 77, 77, 0.12);
  --color-primary-glow: rgba(255, 77, 77, 0.2);
  --color-bg: #121212;
  --color-bg-alt: #1E1E1E;
  --color-surface: #252525;
  --color-text: #E8E8E8;
  --color-text-secondary: #A0A0A0;
  --color-text-muted: #6B6B6B;
  --color-border: #333333;
  --color-border-light: #2A2A2A;
  --color-success: #4CAF50;
  --color-success-light: rgba(76, 175, 80, 0.12);
  --color-danger: #FF4D4D;
  --color-danger-light: rgba(255, 77, 77, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* {
  transition: background-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease,
              border-color 0.2s ease, opacity 0.2s ease;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.header.scrolled {
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 100px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
  text-decoration: none;
}


.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  flex-shrink: 0;
}

.hamburger:hover {
  background: var(--color-bg);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.sidebar-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  border-left: 3px solid transparent;
}

.sidebar-tab:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.sidebar-tab.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.sidebar-user-name {
  font-weight: 600;
  color: var(--color-text);
}

.sidebar-admin-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* SIDEBAR OVERLAY */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* DARK MODE TOGGLE */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.dark-toggle:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.dark-toggle .sun-icon {
  display: block;
}

.dark-toggle .moon-icon {
  display: none;
}

html.dark .dark-toggle .sun-icon {
  display: none;
}

html.dark .dark-toggle .moon-icon {
  display: block;
}

/* NOTIFICATIONS BELL */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.notif-bell:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  padding: 0 4px;
}

/* CREATE POST BUTTON */
.create-post-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.create-post-btn:hover {
  background: var(--color-primary-hover, #c0392b);
  opacity: 0.9;
}

.create-post-btn svg {
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .create-post-btn span {
    display: none;
  }
  .create-post-btn {
    padding: 0 10px;
  }
}

/* GO TO PRODUCTS BUTTON */
.go-products-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-primary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.go-products-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* NOTIFICATIONS DROPDOWN */
.notif-dropdown {
  position: fixed;
  top: calc(var(--header-h) - 10px);
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: 400px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notif-dropdown.open {
  display: flex;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.notif-mark-read {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}

.notif-mark-read:hover {
  opacity: 0.7;
}

.notif-dropdown-body {
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
}

.notif-empty {
  text-align: center;
  padding: 32px 18px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background var(--transition);
  align-items: flex-start;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--color-bg-alt);
}

.notif-item.unread {
  background: var(--color-primary-light);
}

.notif-item.unread:hover {
  background: rgba(204, 0, 0, 0.06);
}

.notif-item-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.notif-item-icon.strike {
  background: #fef2f2;
  color: #dc2626;
}

.notif-item-icon.blocked {
  background: #fef2f2;
  color: #dc2626;
}

.notif-item-icon.success {
  background: #f0fdf4;
  color: #16a34a;
}

.notif-item-icon.announcement {
  background: #eef2ff;
  color: #4f46e5;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-message {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.4;
  word-wrap: break-word;
}

.notif-item-date {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* Responsive: dropdown en mobile */
@media (max-width: 500px) {
  .notif-dropdown {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
}

/* PRODUCT CONTACT BUTTONS */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-call,
.btn-copy-phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-call {
  background: #d1fae5;
  color: #065f46;
}

.btn-call:hover {
  background: #a7f3d0;
}

.btn-copy-phone {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-copy-phone:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-tab:hover::after {
  transform: translateX(0);
}

.nav-tab:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.nav-tab.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-tab svg {
  flex-shrink: 0;
}

.main {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 40px;
}

.section {
  display: none;
  animation: fadeSlideIn var(--transition-slow) forwards;
}

.section.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* ===== HERO / HOME ===== */
.hero {
  text-align: center;
  padding: 40px 0;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--color-text);
  animation: heroFadeIn 0.6s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: #AA0000;
  border-color: #AA0000;
  box-shadow: 0 4px 16px var(--color-primary-glow);
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}

.btn-link:hover {
  color: #AA0000;
}

.btn-ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn-danger {
  background: transparent;
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.user-list-item:hover {
  background: var(--color-bg);
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--color-text);
}

.search-bar input::placeholder {
  color: var(--color-text-muted);
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filters-wrap {
  position: relative;
}

.filters-scroll-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  padding: 0;
  line-height: 1;
  transition: all var(--transition-fast);
}

.filters-scroll-btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.filters-scroll-btn.right {
  right: -4px;
}

.filters-scroll-btn.left {
  left: -4px;
}

.filters-scroll-btn.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
    margin-bottom: 12px;
    -ms-overflow-style: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  .search-bar {
    padding: 10px 12px;
  }
  .search-bar input {
    font-size: 0.88rem;
  }
  .filters-scroll-btn {
    display: flex;
  }
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* ===== PAGINATION ===== */
.pagination {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 20px 0;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pag-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.pag-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pag-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* ===== ADVANCED FILTERS ===== */
.advanced-filters {
  margin-bottom: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.advanced-filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.advanced-filters-toggle:hover {
  background: var(--color-bg-alt);
}

.advanced-filters-toggle .toggle-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.advanced-filters-toggle.open .toggle-arrow {
  transform: rotate(90deg);
}

.advanced-filters-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--color-border-light);
}

.advanced-filters-body.open {
  display: block;
}

.filter-row {
  margin-top: 14px;
}

.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.chip-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.chip-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
}

.price-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
  min-width: 0;
}

.price-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.price-sep {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--color-primary-light);
}

.product-carousel {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: var(--color-bg);
  flex-shrink: 0;
}

.product-card:hover .carousel-slide {
  transform: scale(1.05);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide svg {
  opacity: 0.3;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  opacity: 1;
  transition: opacity 0.25s ease, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.carousel-arrow:hover {
  background: #fff;
}
.carousel-arrow-left {
  left: 8px;
}
.carousel-arrow-right {
  right: 8px;
}
@media (pointer: coarse) {
  .carousel-arrow {
    opacity: 1;
    width: 36px;
    height: 36px;
  }
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-dot.active {
  background: var(--color-surface);
  transform: scale(1.2);
  border-color: transparent;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  min-width: 0;
}

.product-category {
  display: inline-block;
  vertical-align: middle;
  padding: 3px 10px;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.product-age {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 8px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.product-meta-guests {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.product-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-seller {
  font-weight: 500;
}

.product-views {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-body .btn-outline {
  width: 100%;
  font-size: 0.8rem;
  padding: 7px 12px;
}

@media (min-width: 480px) {
  .product-body .btn-outline {
    width: auto;
    align-self: flex-start;
    font-size: 0.82rem;
    padding: 7px 18px;
  }
}

/* ===== SKELETON LOADER ===== */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.skeleton-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.skeleton-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 16px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}

.skeleton-line-sm {
  width: 60%;
}

.skeleton-line-md {
  width: 80%;
}

.skeleton-line-lg {
  width: 40%;
}

@media (min-width: 480px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-muted);
}

.empty-state p {
  margin-top: 16px;
  font-size: 1rem;
}

.empty-state-sub {
  font-size: 0.9rem !important;
  color: var(--color-text-muted);
}

/* ===== AUTH ===== */
.auth-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.auth-tab {
  flex: 1;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  transition: all var(--transition);
  position: relative;
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
}

.auth-tab.active {
  color: var(--color-primary);
}

.auth-tab.active::after {
  width: 60%;
}

.auth-form {
  display: none;
  padding: 32px 24px;
}

.auth-form.active {
  display: block;
  animation: fadeSlideIn var(--transition-slow) forwards;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.title-input-wrapper {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: all var(--transition);
}

.title-input-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  background: var(--color-surface);
}

.title-input-wrapper .title-prefix {
  display: none;
  align-items: center;
  padding: 12px 0 12px 14px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  user-select: none;
  white-space: nowrap;
}

.title-input-wrapper input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  padding: 12px 14px !important;
  font-size: 0.95rem !important;
  color: var(--color-text) !important;
  outline: none !important;
  box-shadow: none !important;
}

.title-input-wrapper input:focus {
  box-shadow: none !important;
}

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

.input-validate-group {
  position: relative;
}

.input-validate-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-validate-wrap > input,
.input-validate-wrap > .password-wrapper {
  flex: 1;
}

.input-validation-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.input-validation-icon.valid {
  opacity: 1;
  transform: scale(1);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.input-validation-icon.invalid {
  opacity: 1;
  transform: scale(1);
  animation: shakeIn 0.4s ease;
}

.input-validation-msg {
  font-size: 0.78rem;
  margin-top: 4px;
  min-height: 18px;
  transition: all 0.2s;
}

.input-validation-msg.valid-msg {
  color: #16a34a;
}

.input-validation-msg.invalid-msg {
  color: #dc2626;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shakeIn {
  0% { opacity: 0; transform: scale(0) translateX(0); }
  30% { opacity: 1; transform: scale(1.1) translateX(-4px); }
  50% { transform: scale(1) translateX(4px); }
  70% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all var(--transition);
  outline: none;
}

.form-input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  background: var(--color-surface);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.phone-input-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  background: var(--color-surface);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid var(--color-border);
  user-select: none;
}

.phone-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

.phone-input-group input::placeholder {
  color: var(--color-text-muted);
}

/* ===== PASSWORD TOGGLE ===== */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.password-wrapper:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  background: var(--color-surface);
}

.password-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

.password-wrapper input::placeholder {
  color: var(--color-text-muted);
}

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-left: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  padding: 0;
}

.password-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.password-wrapper:focus-within .password-toggle {
  color: var(--color-text-secondary);
}

.verification-section {
  padding: 32px 24px;
  animation: fadeSlideIn var(--transition-slow) forwards;
}

.verification-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

.verification-section .btn-full {
  margin-top: 8px;
}

.resend-info {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
}

.resend-info.timer {
  color: var(--color-text-muted);
}

.resend-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
}

.resend-btn:hover {
  color: var(--color-primary-hover);
}

@media (min-width: 768px) {
  .verification-section {
    padding: 40px 32px;
  }
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-error {
  font-size: 0.82rem;
  color: var(--color-danger);
  margin-top: 8px;
  min-height: 20px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  margin: 4px 0;
}
.remember-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ===== SUCCESS SCREEN ===== */
.success-screen {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 8px;
}

.success-text {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ===== DASHBOARD ===== */
.dashboard {
  max-width: 720px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.dashboard-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.dashboard-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-users-btn {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.panel-section-divider {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.panel-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.panel-btn-primary {
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}

.panel-btn-primary:hover {
  background: #AA0000;
}

.panel-btn-success {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: #d1fae5;
  color: #065f46;
  border: none;
  cursor: pointer;
}

.panel-btn-danger {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: #fef2f2;
  color: #dc2626;
  border: none;
  cursor: pointer;
}

.panel-muted {
  color: var(--color-text-muted);
  text-align: center;
  padding: 12px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-mgmt-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.cat-mgmt-tab {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.cat-mgmt-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.cat-mgmt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.85rem;
}

.cat-mgmt-item:last-child {
  border-bottom: none;
}

.cat-mgmt-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-danger);
  font-size: 0.8rem;
  transition: all var(--transition);
}

.cat-mgmt-remove:hover {
  background: var(--color-danger-light);
}

.cat-mgmt-add {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.cat-mgmt-add input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
}

.cat-mgmt-add input:focus {
  border-color: var(--color-primary);
}

.cat-mgmt-add button {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-mgmt-add button:hover {
  background: var(--color-primary-hover);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.info-value {
  font-size: 0.95rem;
  color: var(--color-text);
  text-align: right;
  word-break: break-all;
}

.password-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-display .btn-icon {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  color: var(--color-text-secondary);
  touch-action: manipulation;
}

.password-display .btn-icon:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-primary);
}

@media (max-width: 480px) {
  .password-display .btn-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .info-row {
    gap: 8px;
    padding: 8px 0;
  }
  .info-label {
    font-size: 0.78rem;
  }
  .info-value {
    font-size: 0.88rem;
  }
}

/* ===== IMAGE UPLOAD WITH FILE PICKER ===== */
.image-upload-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-previews {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.image-preview-wrapper {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  transition: all var(--transition);
}

.image-preview-wrapper.dragging {
  opacity: 0.3;
  border-color: var(--color-primary);
}

.image-preview-wrapper.drag-over {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
  transform: scale(1.02);
}

.image-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.image-preview-wrapper .delete-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 14px;
  line-height: 1;
}

.image-preview-wrapper:hover .delete-image-btn {
  opacity: 1;
}

.image-preview-wrapper .drag-handle {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--transition);
  white-space: nowrap;
  cursor: grab;
}

.image-preview-wrapper:hover .drag-handle {
  opacity: 1;
}

.image-upload-btn {
  aspect-ratio: 1;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text-muted);
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--color-bg);
  text-align: center;
  padding: 8px;
}

.image-upload-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.image-add-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.image-url-btn {
  flex: 1;
  aspect-ratio: auto;
  min-height: 80px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text-muted);
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--color-bg);
  text-align: center;
  padding: 8px;
}

.image-url-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.image-counter {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.image-counter .count-current {
  font-weight: 700;
  color: var(--color-text);
}

.image-counter .count-max {
  color: var(--color-text-muted);
}

.image-counter.invalid .count-current {
  color: var(--color-danger);
}

/* ===== GOOGLE MAPS SELECTOR ===== */
.map-selector {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-frame {
  width: 100%;
  height: 200px;
  display: block;
  border: none;
  background: var(--color-bg);
}

.location-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.location-field {
  flex: 1;
  min-width: 0;
}

.location-field:first-child .map-selector-input {
  border-right: 1px solid var(--color-border);
}

.map-selector-input {
  border: none;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  width: 100%;
  padding: 12px 14px;
  background: var(--color-surface);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  transition: background var(--transition);
  appearance: auto;
}

.map-selector-input:focus {
  background: var(--color-bg);
}

.location-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
}
.location-actions .btn {
  flex: 1;
  text-align: center;
}

/* ===== USER PRODUCTS LIST ===== */
.user-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.user-product-item:hover {
  border-color: var(--color-border);
}

.user-product-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.user-product-info {
  flex: 1;
  min-width: 0;
}

.user-product-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-product-info span {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.user-product-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 480px) {
  .user-product-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  .user-product-thumb {
    width: 48px;
    height: 48px;
  }
  .user-product-info {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .user-product-info h4 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.85rem;
  }
  .user-product-actions {
    width: 100%;
    flex-shrink: 1;
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px solid var(--color-border-light);
  }
  .mark-sold-btn,
  .repromote-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .btn-icon {
    width: 36px;
    height: 36px;
  }
}

.mark-sold-btn {
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}

.mark-sold-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.renew-btn {
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}

.renew-btn:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.pub-type-cards {
  display: flex;
  gap: 12px;
}

.pub-type-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.pub-type-card:hover {
  border-color: var(--color-primary);
}

.pub-type-card.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.reset-type-btn {
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 4px 0;
  transition: color var(--transition);
}

.reset-type-btn:hover {
  color: var(--color-primary);
}

.service-badge,
.service-badge-sm {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.service-badge-sm {
  font-size: 0.65rem;
  padding: 1px 6px;
}

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}
.status-badge.renewable {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}
.status-badge.expired {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.pending-mensual {
  background: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

.repromote-btn {
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #b8daff;
  background: #cce5ff;
  color: #004085;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
}
.repromote-btn:hover {
  background: #3399ff;
  color: #fff;
  border-color: #3399ff;
}

.btn-renew {
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #ffc107;
  background: #fff3cd;
  color: #856404;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-renew:hover {
  background: #ffc107;
  color: #333;
}

.delete-product-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.delete-product-btn:hover {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  z-index: 10;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.modal-body {
  padding: 0;
}

.modal-carousel {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-info {
  padding: 24px;
}

.modal-info .product-category {
  margin-bottom: 10px;
}

.modal-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.modal-description-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  background: var(--color-bg-alt);
}

.modal-description-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.modal-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-detail-item {
  padding: 12px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.modal-detail-item span:first-child {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.modal-detail-item span:last-child {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal-contact {
  padding: 16px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-contact .contact-phone-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-contact .btn-call,
.modal-contact .btn-copy-phone,
.modal-contact .btn-whatsapp {
  flex: none;
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--color-text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all var(--transition-slow);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--color-success);
}

.toast.error {
  background: var(--color-danger);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card {
    flex-direction: row;
  }
  .product-card:hover .carousel-slide {
    transform: none;
  }
  .product-carousel {
    width: 160px;
    height: auto;
    min-height: 120px;
  }
  .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
    min-width: 0;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 32px;
  }

  .container {
    padding: 0 32px;
  }

  .main {
    padding-top: calc(var(--header-h) + 32px);
  }

  .section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .search-bar {
    width: 320px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card:hover {
    transform: translateY(-2px);
  }

  .product-carousel {
    width: 220px;
    min-height: 160px;
  }

  .product-body {
    padding: 16px 20px;
  }

  .product-title {
    font-size: 1.05rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .product-price {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .product-meta {
    margin-bottom: 8px;
    font-size: 0.85rem;
  }

  .product-views {
    margin-bottom: 10px;
  }

  .dashboard-card {
    padding: 32px;
  }

  .auth-form {
    padding: 40px 32px;
  }

  .modal-carousel {
    height: 360px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-carousel {
    width: 250px;
    min-height: 170px;
  }

  .product-body {
    padding: 18px 24px;
  }

  .nav-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 3rem;
  }
}



/* ===== CONFIRM DIALOG ===== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.confirm-dialog {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-danger-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-dialog h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.confirm-dialog p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.confirm-actions .btn {
  flex: 1;
  padding: 12px 16px;
}

/* ===== DELETE ACCOUNT SECTION ===== */
.delete-account-section {
  margin-top: 4px;
}

.delete-account-section h3 {
  color: var(--color-danger);
  border-bottom-color: var(--color-danger-light);
}

.delete-account-section p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav {
    display: none;
  }

  .navbar-user {
    display: none !important;
  }
}

@media (max-width: 500px) {
  .image-previews {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-tab span {
    display: none;
  }

  .nav-tab {
    padding: 10px;
  }

  .modal-details {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 8px;
    padding: 0 10px;
  }
}

@media (min-width: 768px) {
  .map-frame {
    height: 260px;
  }
}

/* ===== HERO FEATURES ===== */
.hero-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.hero-feature {
  text-align: center;
  padding: 28px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.hero-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero-feature svg {
  margin-bottom: 14px;
}

.hero-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.hero-feature p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-features {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .hero-feature {
    max-width: 420px;
  }
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.how-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.how-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.how-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.how-step-icon {
  margin-bottom: 16px;
}

.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.how-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.how-step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ===== TERMS BLOCK (shared between page and modal) ===== */
.terms-block {
  margin-bottom: 28px;
}

.terms-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.terms-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.terms-block ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 10px;
}

.terms-block ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.terms-block a {
  color: var(--color-primary);
  text-decoration: underline;
}

.terms-block a:hover {
  color: var(--color-primary-hover);
}

/* ===== TERMS MODAL ===== */
.terms-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.terms-modal-overlay.open {
  display: flex;
}

.terms-modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px 24px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.terms-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.terms-modal-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.terms-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 4px;
  padding-right: 40px;
}

.terms-modal-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.terms-modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

.terms-modal-body .terms-block {
  margin-bottom: 20px;
}

.terms-modal-body .terms-block h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.terms-modal-body .terms-block p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.terms-modal-body .terms-block ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 8px;
}

.terms-modal-body .terms-block ul li {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.terms-modal-body .terms-block a {
  color: var(--color-primary);
  text-decoration: underline;
}

.terms-modal-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.terms-modal-btn:hover {
  background: var(--color-primary-hover);
}

/* ===== TERMS CHECKBOX ===== */
.terms-checkbox-group {
  margin-bottom: 18px;
}

.terms-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  cursor: pointer;
  line-height: 1.5;
}

.terms-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.terms-link-btn {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}

.terms-link-btn:hover {
  color: var(--color-primary-hover);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 20px 0;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  padding: 40px 32px;
  text-align: center;
  animation: fadeSlideIn var(--transition-slow) forwards;
}

.contact-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.contact-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-btn-whatsapp {
  background: #25D366;
}

.contact-btn-whatsapp:hover {
  background: #1DA851;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.btn-whatsapp:hover {
  background: #1DA851;
  color: #fff;
}

.input-with-check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-with-check input {
  flex: 1;
}

.btn-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}

.btn-check:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-check:not(:disabled):hover {
  border-color: #16a34a;
  color: #16a34a;
  background: #f0fdf4;
}

.btn-check.confirmed {
  border-color: #16a34a;
  color: #fff;
  background: #16a34a;
}

.contact-btn-email {
  background: var(--color-primary);
}

.contact-btn-email:hover {
  background: var(--color-primary-hover);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.contact-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
  font-family: inherit;
}

.contact-input:focus {
  border-color: var(--color-primary);
}

.contact-textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.contact-btn-submit {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
}

.contact-btn-submit:hover {
  background: var(--color-primary-hover);
  transform: scale(1.02);
}

.contact-form-status {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

@media (min-width: 480px) {
  .contact-card {
    padding: 48px 40px;
  }
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.donation-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.donation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #E63946);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.donation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-primary-glow);
  background: linear-gradient(135deg, var(--color-primary-hover), #CC0033);
}

.donation-alias {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.donation-alias-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.donation-alias-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  font-family: 'Courier New', Courier, monospace;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.copy-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.copy-btn.copied {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}

.copy-btn svg {
  flex-shrink: 0;
}

/* ===== PLAN SELECTION ===== */
.plans-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-slow);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.plan-card:hover {
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.plan-card.active {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 1.5px var(--color-primary), var(--shadow-md);
  transform: translateY(-2px);
}

.plan-card.active .plan-card-header {
  background: transparent;
}

.plan-card.highlighted {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-glow), var(--shadow-md);
}

.plan-card.highlighted:hover,
.plan-card.highlighted.active {
  box-shadow: 0 0 0 1.5px var(--color-primary), var(--shadow-lg);
}

.plan-recommended-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.2);
}

.plan-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 130px;
  width: 130px;
  padding: 20px 16px;
  background: var(--color-bg-alt);
  border-right: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.plan-duration {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.plan-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 4px;
}

.plan-price.free {
  color: var(--color-success);
}

.plan-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  margin: 0;
  list-style: none;
  flex: 1;
}

.plan-features li {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.plan-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 1px;
}

@media (min-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
}

/* ===== REACT PLAN CARD VARIANTS ===== */
.plan-card-react {
  position: relative;
  background: var(--color-surface);
  border-color: var(--color-border);
  transition: all var(--transition-slow);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.plan-card-react:hover {
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.plan-card-react.active {
  border-color: var(--color-primary) !important;
  background: transparent;
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-md);
  transform: translateY(-2px);
}

.plan-card-react.highlighted {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-glow), var(--shadow-md);
}

.plan-card-react.highlighted:hover,
.plan-card-react.highlighted.active {
  box-shadow: 0 0 0 1.5px var(--color-primary), var(--shadow-lg);
}

.plan-card-header-react {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-card-header-react .plan-name-react {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.plan-card-header-react .plan-price-react {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.plan-card-header-react .plan-price-react.free {
  color: var(--color-success);
}

/* ===== PROMO BADGE ===== */
.promo-badge {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.promo-badge.on-card {
  margin-bottom: 6px;
}

/* ===== EXPIRING BADGE ===== */
.expiring-badge {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #F3F4F6;
  color: #4B5563;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  margin-left: 4px;
}
.expiring-badge.danger {
  background: #FFF7ED;
  color: #9A3412;
  font-weight: 700;
}
