/* ================================================================
   PATENTBORSA — style.css
   Patent Satış Platformu — Sahibinden.com mantığı
   ================================================================ */

:root {
  --orange:      #FF6000;
  --orange-dark: #e05500;
  --orange-light:#FFF3EB;
  --blue:        #0066CC;
  --blue-light:  #E8F0FA;
  --green:       #28a745;
  --green-dark:  #218838;
  --red:         #dc3545;
  --yellow:      #ffc107;
  --purple:      #9c27b0;
  --teal:        #00bcd4;
  --pink:        #e91e63;

  --text-dark:   #1a1a1a;
  --text-mid:    #444444;
  --text-light:  #777777;
  --text-xlight: #aaaaaa;

  --bg:          #f5f5f5;
  --bg-white:    #ffffff;
  --bg-light:    #f9f9f9;
  --border:      #e0e0e0;
  --border-dark: #cccccc;

  --header-h:    96px;
  --mob-nav-h:   64px;
  --radius:      8px;
  --radius-sm:   4px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow:      0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 4px 24px rgba(0,0,0,.14);
  --transition:  .2s ease;
}

/* -------- Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.5;
  padding-top: var(--header-h);
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: 14px; }
input, select, textarea { font-family: inherit; font-size: 14px; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.header-top { background: var(--bg-white); border-bottom: 1px solid var(--border); }
.header-top-inner {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; }
.logo-icon { color: var(--orange); font-size: 26px; line-height: 1; }
.logo-text { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.logo-text strong { color: var(--orange); }

/* Search */
.header-search { flex: 1; min-width: 0; max-width: 520px; }
.search-box {
  display: flex; align-items: center;
  border: 2px solid var(--orange); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.search-icon { padding: 0 10px; color: var(--text-xlight); flex-shrink: 0; }
.search-box input { flex: 1; border: none; outline: none; padding: 8px 6px; font-size: 14px; min-width: 0; }
.btn-search-go {
  background: var(--orange); color: #fff; padding: 9px 18px;
  font-weight: 700; font-size: 14px; flex-shrink: 0; transition: background var(--transition);
}
.btn-search-go:hover { background: var(--orange-dark); }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-auth { display: flex; gap: 6px; }
.btn-outline-sm {
  border: 1.5px solid var(--orange); color: var(--orange); border-radius: var(--radius-sm);
  padding: 6px 14px; font-weight: 700; background: #fff; transition: all var(--transition);
}
.btn-outline-sm:hover { background: var(--orange-light); }
.btn-primary-sm {
  background: var(--orange); color: #fff; border-radius: var(--radius-sm);
  padding: 6px 14px; font-weight: 700; transition: background var(--transition);
}
.btn-primary-sm:hover { background: var(--orange-dark); }
.btn-sell-header {
  background: var(--green); color: #fff; border-radius: var(--radius-sm);
  padding: 7px 16px; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 6px; transition: background var(--transition);
}
.btn-sell-header:hover { background: var(--green-dark); }

/* User Menu */
.user-menu { position: relative; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; cursor: pointer;
  border: 2px solid var(--orange-light);
}
.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-width: 220px; z-index: 300; overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--orange-light); border-bottom: 1px solid var(--border);
}
.ud-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.user-dropdown-header strong { display: block; font-size: 14px; font-weight: 700; }
.user-dropdown-header span { font-size: 12px; color: var(--text-light); }
.ud-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text-dark); font-size: 13px;
  border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.ud-item:last-child { border-bottom: none; }
.ud-item:hover { background: var(--bg-light); text-decoration: none; }
.ud-item i { width: 16px; color: var(--text-light); }
.ud-item.add-listing-btn { color: var(--green); font-weight: 700; }
.ud-item.add-listing-btn i { color: var(--green); }
.ud-logout { color: var(--red); }
.ud-logout i { color: var(--red); }
.ud-divider { height: 1px; background: var(--border); }

/* Hamburger */
.hamburger { display: none; font-size: 22px; color: var(--text-mid); padding: 4px; }

/* Nav */
.header-nav { background: var(--orange); }
.nav-list { display: flex; align-items: stretch; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; color: #fff; font-weight: 700; font-size: 13px;
  transition: background var(--transition); white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-link.active { background: rgba(0,0,0,.15); border-bottom-color: #fff; text-decoration: none; }
.nav-link.nav-sell { background: rgba(0,0,0,.2); margin-left: 4px; }
.nav-link.nav-sell:hover { background: rgba(0,0,0,.3); }
.nav-link i { font-size: 12px; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); min-width: 200px; z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; color: var(--text-dark); font-size: 13px;
  border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--orange-light); color: var(--orange); text-decoration: none; }

/* ================================================================
   OVERLAY & MODAL
   ================================================================ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 2000;
}
.overlay.active { display: block; }

.modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 2100;
  width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
}
.modal.modal-wide { max-width: 680px; }
.modal.active { display: block; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-logo { display: flex; align-items: center; gap: 8px; }
.modal-logo .logo-icon { font-size: 20px; color: var(--orange); }
.modal-logo .logo-text { font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 700; }
.modal-logo .logo-text strong { color: var(--orange); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); color: var(--text-mid);
  border: 1px solid var(--border); font-size: 16px; transition: all var(--transition);
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal-body { padding: 24px; }
.modal-title { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.modal-subtitle { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }
.modal-header h3 { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; }

/* Auth Form */
.auth-form { display: flex; flex-direction: column; gap: 0; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; color: var(--text-mid); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); outline: none; transition: border var(--transition); font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 40px; }
.toggle-pass {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-xlight); font-size: 14px;
}
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-mid); cursor: pointer; }
.checkbox-label input { width: auto; }
.link-sm { color: var(--orange); font-size: 13px; }
.auth-divider { text-align: center; position: relative; margin: 16px 0; }
.auth-divider::before { content:''; position:absolute; top:50%; left:0; right:0; height:1px; background:var(--border); }
.auth-divider span { position: relative; background: #fff; padding: 0 10px; color: var(--text-xlight); font-size: 12px; }
.social-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text-dark); background: #fff; transition: all var(--transition);
}
.btn-social:hover { background: var(--bg-light); }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.req { color: var(--red); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  background: var(--orange); color: #fff; border-radius: var(--radius-sm);
  padding: 10px 20px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--transition); border: none;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
  border: 1.5px solid var(--border); color: var(--text-mid); border-radius: var(--radius-sm);
  padding: 10px 20px; font-weight: 700; font-size: 14px; background: #fff;
  display: inline-flex; align-items: center; gap: 6px; transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-success {
  background: var(--green); color: #fff; border-radius: var(--radius-sm);
  padding: 10px 20px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; transition: background var(--transition);
}
.btn-success:hover { background: var(--green-dark); }
.btn-white-orange {
  background: #fff; color: var(--orange); border: none;
  border-radius: var(--radius-sm); padding: 8px 20px; font-weight: 800; font-size: 13px;
  transition: all var(--transition);
}
.btn-white-orange:hover { background: var(--orange-light); }

/* ================================================================
   HERO
   ================================================================ */
.hero-banner { position: relative; overflow: hidden; }
.hero-slides { position: relative; }
.hero-slide { display: none; background: var(--bg); }
.hero-slide.active { display: block; }
.hero-slide { background: var(--bg); background-image: var(--bg); padding: 48px 0; }
.hero-slide { background: linear-gradient(135deg,#FF6000,#ff9900); }
.hero-slide:nth-child(2) { background: linear-gradient(135deg,#1a3a6e,#0066CC); }
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2); color: #fff;
  border: 1px solid rgba(255,255,255,.4); border-radius: 20px;
  padding: 5px 14px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.hero-content h1 { font-family: 'Nunito', sans-serif; font-size: 36px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.hero-content h1 strong { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hero-content p { color: rgba(255,255,255,.9); font-size: 16px; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-hero-primary {
  background: #fff; color: var(--orange); border-radius: var(--radius);
  padding: 12px 24px; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; gap: 8px; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-hero-outline {
  border: 2px solid rgba(255,255,255,.7); color: #fff; border-radius: var(--radius);
  padding: 12px 24px; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; gap: 8px; transition: all var(--transition); background: transparent;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); }
.hero-stats { display: flex; gap: 24px; }
.hero-stats span { color: rgba(255,255,255,.85); font-size: 13px; }
.hero-stats strong { color: #fff; font-weight: 800; font-size: 18px; display: block; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all var(--transition); }
.hero-dot.active { background: #fff; width: 24px; border-radius: 5px; }

/* ================================================================
   QUICK SEARCH BAR
   ================================================================ */
.quick-search-bar { background: #fff; border-bottom: 2px solid var(--border); padding: 16px 0; }
.qs-inner { display: flex; flex-direction: column; gap: 12px; }
.qs-tabs { display: flex; gap: 4px; }
.qs-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 13px;
  color: var(--text-mid); border: 1.5px solid var(--border); background: #fff; transition: all var(--transition);
}
.qs-tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.qs-tab:hover:not(.active) { border-color: var(--orange); color: var(--orange); }
.qs-form { display: flex; gap: 8px; flex-wrap: wrap; }
.qs-form input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.qs-form input:focus { border-color: var(--orange); }
.qs-form select { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; min-width: 140px; }

/* ================================================================
   THREE COLUMN LAYOUT
   ================================================================ */
.three-col-layout { display: grid; grid-template-columns: 220px 1fr 220px; gap: 20px; padding: 24px 0; }
.main-col { min-width: 0; }
.sidebar-left, .sidebar-right { display: flex; flex-direction: column; }

/* Sidebar Card */
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sidebar-card-header {
  background: var(--orange); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 12px; display: flex; align-items: center; gap: 6px;
}

/* Listing item (sidebar) */
.listing-item { padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.listing-item:last-child { border-bottom: none; }
.listing-item:hover { background: var(--orange-light); }
.listing-item-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; display: inline-block; margin-bottom: 4px; }
.listing-item-title { font-size: 12px; font-weight: 600; color: var(--text-dark); margin-bottom: 3px; line-height: 1.4; }
.listing-item-meta { font-size: 11px; color: var(--text-xlight); }
.listing-item-price { font-size: 13px; font-weight: 800; color: var(--orange); margin-top: 4px; }

/* Badges */
.badge-patent  { background: #FFF3EB; color: #FF6000; }
.badge-marka   { background: #E8F0FA; color: #0066CC; }
.badge-faydali { background: #E8F8EC; color: #28a745; }
.badge-tasarim { background: #F3E8FA; color: #9c27b0; }

/* Cat Filter */
.cat-filter-list { padding: 8px; }
.cat-filter-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-mid); font-weight: 600; transition: all var(--transition);
  margin-bottom: 2px;
}
.cat-filter-btn:hover, .cat-filter-btn.active { background: var(--orange-light); color: var(--orange); }
.cat-filter-btn .count { font-size: 11px; color: var(--text-xlight); }

/* Info list */
.info-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.info-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-mid); }
.info-item i { color: var(--green); font-size: 12px; margin-top: 2px; flex-shrink: 0; }

/* ================================================================
   CATEGORY GRID
   ================================================================ */
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; color: var(--text-dark); }
.see-all { font-size: 13px; font-weight: 600; color: var(--orange); }
.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 24px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all var(--transition);
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 12%, white);
  color: var(--c); display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.cat-name { font-size: 12px; font-weight: 700; color: var(--text-dark); text-align: center; }
.cat-count { font-size: 11px; color: var(--text-xlight); }

/* ================================================================
   LISTINGS FEED (Ana sayfa, yatay kartlar)
   ================================================================ */
.listings-feed { display: flex; flex-direction: column; gap: 8px; }
.feed-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px; padding: 12px;
  cursor: pointer; transition: all var(--transition);
}
.feed-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.feed-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.feed-card-body { flex: 1; min-width: 0; }
.feed-card-title { font-weight: 700; font-size: 14px; color: var(--text-dark); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-light); }
.feed-card-meta span { display: flex; align-items: center; gap: 4px; }
.feed-card-right { text-align: right; flex-shrink: 0; }
.feed-card-price { font-size: 16px; font-weight: 800; color: var(--orange); white-space: nowrap; }
.feed-card-price.negotiable::after { content: ' (Pazarlık)'; font-size: 11px; color: var(--text-xlight); font-weight: 400; }
.fav-btn {
  background: none; border: none; color: var(--text-xlight); font-size: 16px;
  cursor: pointer; padding: 2px; transition: color var(--transition);
}
.fav-btn:hover, .fav-btn.active { color: var(--red); }
.fav-btn.active { color: var(--red); }

/* Status Badges */
.status-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; margin-top: 4px; }
.status-satilik { background: #e8f8ec; color: #28a745; }
.status-satildi { background: #f0f0f0; color: #888; }
.status-beklemede { background: #fff8e1; color: #f57c00; }
.status-lisans { background: #e8f0fa; color: #0066CC; }

/* ================================================================
   STATS STRIP
   ================================================================ */
.stats-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin: 24px 0; overflow: hidden;
}
.stat-item {
  padding: 16px; text-align: center; border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 900; color: var(--orange); }
.stat-item span { font-size: 12px; color: var(--text-light); }

/* How Banner */
.how-banner {
  background: var(--orange); border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 24px;
}
.how-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.how-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.how-step span { font-size: 12px; font-weight: 700; color: #fff; }
.how-arrow { color: rgba(255,255,255,.5); font-size: 14px; }

/* ================================================================
   LISTINGS PAGE
   ================================================================ */
.page-pad { padding-top: 24px; padding-bottom: 40px; }
.listings-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }

/* Filter Sidebar */
.filter-sidebar {}
.filter-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.filter-title { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.filter-group { margin-bottom: 16px; }
.filter-label { display: block; font-weight: 700; font-size: 12px; color: var(--text-mid); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .4px; }
.filter-group select, .filter-group input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; font-size: 13px; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--orange); }
.price-range-inputs { display: flex; align-items: center; gap: 8px; }
.price-range-inputs input { flex: 1; }
.price-range-inputs span { color: var(--text-xlight); flex-shrink: 0; }
.checkbox-group { display: flex; flex-direction: column; gap: 6px; }

/* Listings Toolbar */
.listings-main { min-width: 0; }
.listings-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 12px;
}
.listings-count { font-size: 13px; font-weight: 700; color: var(--text-mid); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.toolbar-right select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; }
.view-btns { display: flex; gap: 4px; }
.view-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--text-light); transition: all var(--transition); }
.view-btn.active, .view-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Full Card Grid */
.listings-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.listings-full-grid.list-view { grid-template-columns: 1fr; }
.listing-full-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: all var(--transition); position: relative;
}
.listing-full-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.lfc-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 10px; }
.lfc-title { font-weight: 700; font-size: 13px; color: var(--text-dark); margin-bottom: 6px; line-height: 1.4; }
.lfc-meta { font-size: 11px; color: var(--text-light); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.lfc-meta span { display: flex; align-items: center; gap: 3px; }
.lfc-footer { display: flex; align-items: center; justify-content: space-between; }
.lfc-price { font-size: 15px; font-weight: 800; color: var(--orange); }
.lfc-actions { display: flex; gap: 6px; margin-top: 8px; }
.lfc-btn {
  flex: 1; padding: 7px 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 4px; transition: all var(--transition);
}
.lfc-btn-primary { background: var(--orange); color: #fff; }
.lfc-btn-primary:hover { background: var(--orange-dark); }
.lfc-btn-outline { border: 1.5px solid var(--border); color: var(--text-mid); background: #fff; }
.lfc-btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.lfc-fav { position: absolute; top: 10px; right: 10px; }
/* List view */
.listings-full-grid.list-view .listing-full-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; }
.listings-full-grid.list-view .lfc-icon { margin-bottom: 0; }
.listings-full-grid.list-view .lfc-title { font-size: 14px; }
.listings-full-grid.list-view .lfc-actions { margin-top: 0; }
.listings-full-grid.list-view .lfc-fav { position: static; }

/* ================================================================
   ADD PATENT PAGE
   ================================================================ */
.add-page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }

/* Steps Sidebar */
.steps-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.steps-title { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; margin-bottom: 16px; color: var(--text-dark); }
.step-list { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  opacity: .5; transition: opacity var(--transition);
}
.step:last-child { border-bottom: none; }
.step.active, .step.done { opacity: 1; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  background: var(--bg); color: var(--text-light); border: 2px solid var(--border); transition: all var(--transition);
}
.step.active .step-num { background: var(--orange); color: #fff; border-color: var(--orange); }
.step.done .step-num { background: var(--green); color: #fff; border-color: var(--green); }
.step-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); }
.step-info span { font-size: 11px; color: var(--text-xlight); }
.tips-list { display: flex; flex-direction: column; gap: 8px; }
.tip-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-mid); }
.tip-item i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* Add Form Main */
.apply-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-step { display: none; }
.form-step.active { display: block; }
.step-heading { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.step-heading i { color: var(--orange); }
.step-desc { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }

/* Type Selection */
.type-selection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.type-card { cursor: pointer; }
.type-card input { display: none; }
.type-card-inner {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center;
  transition: all var(--transition);
}
.type-card-inner i { font-size: 26px; color: var(--tc, var(--orange)); }
.type-card-inner strong { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.type-card-inner span { font-size: 11px; color: var(--text-xlight); }
.type-card input:checked + .type-card-inner { border-color: var(--tc, var(--orange)); background: color-mix(in srgb, var(--tc, var(--orange)) 8%, white); }
.type-card:hover .type-card-inner { border-color: var(--tc, var(--orange)); }

/* Sale Type */
.sale-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.sale-type-card { cursor: pointer; }
.sale-type-card input { display: none; }
.sale-type-inner {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 10px; text-align: center; transition: all var(--transition);
}
.sale-type-inner i { font-size: 20px; color: var(--text-light); display: block; margin-bottom: 6px; }
.sale-type-inner strong { display: block; font-size: 12px; font-weight: 700; }
.sale-type-inner span { font-size: 11px; color: var(--text-xlight); }
.sale-type-card input:checked + .sale-type-inner { border-color: var(--orange); background: var(--orange-light); }
.sale-type-card input:checked + .sale-type-inner i { color: var(--orange); }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px 16px; text-align: center; cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--orange); background: var(--orange-light); }
.upload-zone i { font-size: 32px; color: var(--text-xlight); }
.upload-zone strong { font-size: 14px; color: var(--text-dark); }
.upload-zone span { font-size: 12px; color: var(--text-xlight); }
.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--bg-light); border-radius: var(--radius-sm);
  margin-top: 6px; font-size: 13px;
}
.file-item i:first-child { color: var(--orange); }
.file-item-name { flex: 1; }
.file-item-size { color: var(--text-xlight); font-size: 11px; }
.file-remove { color: var(--red); cursor: pointer; }
.char-count { font-size: 11px; color: var(--text-xlight); text-align: right; margin-top: 4px; }

/* Price Summary */
.price-summary { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.price-summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.price-summary-row:last-child { border-bottom: none; }
.price-summary-row.total strong { font-size: 16px; color: var(--orange); }

/* Step Nav */
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-next, .btn-back { min-width: 140px; justify-content: center; }
.btn-publish { min-width: 180px; background: var(--green); }
.btn-publish:hover { background: var(--green-dark); }

/* Preview Card */
.preview-card {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.preview-row { display: flex; margin-bottom: 8px; font-size: 13px; }
.preview-row .pr-label { width: 160px; font-weight: 700; color: var(--text-mid); flex-shrink: 0; }
.preview-row .pr-val { color: var(--text-dark); }
.confirm-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

/* Success Screen */
.success-screen { text-align: center; padding: 32px 0; }
.success-icon { font-size: 56px; color: var(--green); margin-bottom: 16px; }
.success-screen h3 { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.success-screen p { color: var(--text-light); font-size: 14px; }
.success-sub { font-size: 13px; color: var(--text-xlight); margin-top: 4px; }
.success-btns { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ================================================================
   DASHBOARD
   ================================================================ */
.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.dash-sidebar { }
.dash-profile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; margin-bottom: 12px;
}
.dash-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 10px; }
.dash-profile strong { display: block; font-size: 15px; font-weight: 700; }
.dash-profile span { font-size: 12px; color: var(--text-xlight); }
.dash-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--text-mid); border-bottom: 1px solid var(--border); transition: background var(--transition); }
.dash-nav-item:last-child { border-bottom: none; }
.dash-nav-item:hover { background: var(--orange-light); color: var(--orange); text-decoration: none; }
.dash-nav-item.active { background: var(--orange-light); color: var(--orange); font-weight: 700; border-left: 3px solid var(--orange); }
.dash-nav-item i { width: 16px; }
.nav-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 10px; }
.dash-main { min-width: 0; }
.dash-tab { display: none; }
.dash-tab.active { display: block; }
.page-h1 { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 900; margin-bottom: 20px; color: var(--text-dark); }
.page-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.dash-stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; }
.dash-stat-card i { font-size: 24px; }
.dash-stat-card strong { display: block; font-size: 22px; font-weight: 900; font-family: 'Nunito', sans-serif; }
.dash-stat-card span { font-size: 12px; color: var(--text-light); }

/* Messages */
.messages-list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.message-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.message-item:last-child { border-bottom: none; }
.message-item:hover { background: var(--bg-light); }
.message-item.unread { background: var(--orange-light); }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.msg-body { flex: 1; min-width: 0; }
.msg-body strong { display: block; font-size: 13px; margin-bottom: 3px; }
.msg-body p { font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-body span { font-size: 11px; color: var(--text-xlight); }
.settings-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* My Listings Tabs */
.my-listings-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.ml-tab { padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--text-mid); border: 1.5px solid var(--border); background: #fff; transition: all var(--transition); }
.ml-tab.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.ml-tab:hover:not(.active) { border-color: var(--orange); color: var(--orange); }

/* ================================================================
   HOW IT WORKS PAGE
   ================================================================ */
.page-sub { color: var(--text-light); font-size: 16px; margin-bottom: 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.how-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; position: relative; transition: all var(--transition);
}
.how-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.how-card-num { position: absolute; top: -14px; left: 20px; background: var(--orange); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 12px; }
.how-card-icon { font-size: 36px; color: var(--orange); margin-bottom: 14px; }
.how-card h3 { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.how-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.cta-banner { background: linear-gradient(135deg,#FF6000,#ff9900); border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.cta-banner h2 { font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.cta-banner .btn-hero-primary { margin: 0 auto; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { display: block; font-weight: 600; font-size: 13px; color: var(--text-mid); margin-bottom: 5px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); outline: none; transition: border var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--orange); }
.contact-info-list { display: flex; flex-direction: column; gap: 14px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-item i { color: var(--orange); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--text-mid); }
.contact-info-item a { color: var(--orange); }
.social-links-row { display: flex; gap: 8px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all var(--transition); }
.social-link:hover { background: var(--orange-dark); transform: translateY(-2px); text-decoration: none; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: #1a1a1a; color: #ccc; margin-top: 0; }
.footer-top { padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo .logo-text, .footer-brand .logo .logo-icon { color: #fff; }
.footer-brand .logo .logo-text strong { color: var(--orange); }
.footer-brand p { font-size: 13px; color: #888; line-height: 1.6; }
.footer-col h4 { color: #fff; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #888; font-size: 13px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); text-decoration: none; }
.footer-brand .social-link { background: #333; }
.footer-brand .social-link:hover { background: var(--orange); }
.footer-bottom { border-top: 1px solid #333; padding: 14px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.footer-bottom p { font-size: 12px; color: #555; }

/* ================================================================
   MOBILE BOTTOM NAV
   ================================================================ */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.1); height: var(--mob-nav-h);
}
.mob-nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-xlight); font-size: 11px; font-weight: 600; transition: color var(--transition); padding: 6px 0; }
.mob-nav-btn i { font-size: 20px; }
.mob-nav-btn.active { color: var(--orange); }
.mob-nav-center { position: relative; }
.mob-nav-plus { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 2px; margin-top: -20px; box-shadow: 0 4px 16px rgba(255,96,0,.4); transition: all var(--transition); }
.mob-nav-center:hover .mob-nav-plus { background: var(--orange-dark); transform: scale(1.05); }

/* Toast */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: #333; color: #fff; padding: 10px 20px; border-radius: 24px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .3s ease; z-index: 9999; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Detail Modal */
.patent-detail { display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-size: 13px; font-weight: 700; color: var(--text-mid); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.detail-info-list { display: flex; flex-direction: column; gap: 6px; }
.detail-info-row { display: flex; gap: 10px; font-size: 13px; }
.detail-info-row .dil { width: 120px; color: var(--text-light); flex-shrink: 0; }
.detail-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }
.detail-price-box { background: var(--orange-light); border: 2px solid var(--orange); border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 12px; }
.detail-price-box .dp-price { font-size: 24px; font-weight: 900; color: var(--orange); font-family: 'Nunito', sans-serif; }
.detail-price-box .dp-type { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .listings-full-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .three-col-layout { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .dash-stats-grid { grid-template-columns: repeat(2,1fr); }
  .contact-layout, .how-grid { grid-template-columns: 1fr 1fr; }
  .add-page-layout { grid-template-columns: 1fr; }
  .steps-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  body { padding-bottom: var(--mob-nav-h); }
  .header-top-inner { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: 100%; }
  .header-right { display: none; }
  .hamburger { display: block; margin-left: auto; }
  .header-nav { display: none; }
  .header-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .dropdown { position: static; box-shadow: none; border: none; border-radius: 0; display: block; background: rgba(0,0,0,.15); }
  .mobile-bottom-nav { display: flex; }
  .hero-content h1 { font-size: 24px; }
  .hero-slide { padding: 28px 0; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .qs-form { flex-direction: column; }
  .category-grid { grid-template-columns: repeat(3,1fr); }
  .listings-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .listings-full-grid { grid-template-columns: 1fr; }
  .listings-full-grid.list-view { grid-template-columns: 1fr; }
  .type-selection { grid-template-columns: repeat(2,1fr); }
  .sale-type-grid { grid-template-columns: 1fr; }
  .form-row-two { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-stats-grid { grid-template-columns: repeat(2,1fr); }
  .modal { max-width: calc(100vw - 32px); }
  .modal-body { padding: 16px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .patent-detail { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { justify-content: center; }
}