/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --green:#1a8f4b;--green-dark:#14703b;--green-light:#e8f7ee;--green-mid:#d1f0de;
  --orange:#f56c1e;--red:#dc2626;
  --gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--gray-300:#d1d5db;
  --gray-400:#9ca3af;--gray-500:#6b7280;--gray-600:#4b5563;--gray-700:#374151;--gray-800:#1f2937;
  --white:#fff;--radius:10px;--radius-lg:16px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.08);
  --shadow-md:0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:0 8px 32px rgba(0,0,0,.14);
  --font:'Inter',system-ui,sans-serif;
  --bg:#fff;--surface:#fff;--border:var(--gray-200);--text:var(--gray-800);--text-muted:var(--gray-500);
}
[data-theme="dark"]{
  --bg:#0f1117;--surface:#1a1d27;--border:#2d3045;
  --text:#e8eaf0;--text-muted:#8b8fa8;
  --white:#1a1d27;
  --gray-50:#12151f;--gray-100:#1e2130;--gray-200:#2d3045;--gray-300:#3d4260;
  --gray-400:#6b6f8a;--gray-500:#8b8fa8;--gray-600:#a8acc4;--gray-700:#c8ccde;--gray-800:#e8eaf0;
  --green-light:#0d2918;--green-mid:#0f3320;
  --shadow-sm:0 1px 3px rgba(0,0,0,.3);
  --shadow-md:0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:0 8px 32px rgba(0,0,0,.5);
}
body{font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.5;transition:background .2s,color .2s}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:64px 0}
.section--gray{background:var(--bg)}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 20px;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;border:2px solid transparent;transition:all .18s ease;font-family:var(--font);white-space:nowrap}
.btn--primary{background:var(--green);color:#fff;border-color:var(--green)}
.btn--primary:hover{background:var(--green-dark);border-color:var(--green-dark)}
.btn--outline{background:transparent;color:var(--green);border-color:var(--green)}
.btn--outline:hover{background:var(--green-light)}
.btn--ghost{background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.4)}
.btn--ghost:hover{background:rgba(255,255,255,.28)}
.btn--white{background:#fff;color:var(--green);border-color:#fff}
.btn--white:hover{background:var(--green-light)}
.btn--danger{background:var(--red);color:#fff;border-color:var(--red)}
.btn--danger:hover{background:#b91c1c}
.btn--gray{background:var(--gray-100);color:var(--text);border-color:var(--gray-200)}
.btn--gray:hover{background:var(--gray-200)}
.btn--lg{padding:14px 28px;font-size:1rem}
.btn--sm{padding:7px 14px;font-size:.85rem}
.btn--full{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* ===== HEADER ===== */
.header{position:sticky;top:0;z-index:100}
.header__top{background:var(--surface);border-bottom:1px solid var(--border);box-shadow:var(--shadow-sm)}
.header__top-inner{display:flex;align-items:center;gap:14px;padding:10px 20px;max-width:1200px;margin:0 auto}
.logo{font-size:1.5rem;font-weight:800;letter-spacing:-.5px;flex-shrink:0}
.logo__prodaj{color:var(--text)}
.logo__kupi{color:var(--green)}
.search-bar{flex:1;display:flex;border:2px solid var(--green);border-radius:8px;overflow:hidden}
.search-bar__input{flex:1;padding:9px 14px;font-size:.93rem;border:none;outline:none;font-family:var(--font)}
.search-bar__select{padding:9px 10px;border:none;border-left:1px solid var(--gray-200);background:var(--gray-50);font-size:.83rem;outline:none;font-family:var(--font);cursor:pointer;color:var(--gray-600)}
.search-bar__btn{display:flex;align-items:center;gap:6px;padding:9px 16px;background:var(--green);color:#fff;font-weight:600;font-size:.88rem;border:none;cursor:pointer;font-family:var(--font);transition:background .15s}
.search-bar__btn:hover{background:var(--green-dark)}
.header__actions{display:flex;gap:8px;flex-shrink:0;align-items:center}
.user-pill{display:flex;align-items:center;gap:8px;background:var(--green-light);color:var(--green);padding:6px 12px;border-radius:8px;font-weight:600;font-size:.86rem;cursor:pointer;border:none;font-family:var(--font);transition:background .15s;text-decoration:none}
.user-pill:hover{background:var(--green-mid)}
.user-pill__avatar{width:26px;height:26px;background:var(--green);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.82rem;flex-shrink:0}
.header__nav{background:var(--green)}
.header__nav-inner{display:flex;overflow-x:auto;scrollbar-width:none;max-width:1200px;margin:0 auto;padding:0 20px}
.header__nav-inner::-webkit-scrollbar{display:none}
.header__nav-inner a{color:rgba(255,255,255,.88);font-size:.85rem;font-weight:500;padding:10px 14px;white-space:nowrap;transition:all .15s;cursor:pointer;display:block}
.header__nav-inner a:hover,.header__nav-inner a.active{color:#fff;background:rgba(0,0,0,.14)}

/* ===== HERO ===== */
.hero{background:linear-gradient(135deg,#0f5c2e 0%,#1a8f4b 55%,#22c068 100%);color:#fff;padding:64px 0}
.hero__text h1{font-size:2.6rem;font-weight:800;line-height:1.15;margin-bottom:14px}
.hero__text h1 span{color:#a3f0c0}
.hero__srbija{
  background: linear-gradient(180deg, #C6363C 33.3%, #003DA5 33.3%, #003DA5 66.6%, #fff 66.6%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight:800;
  display:inline;
}
.hero__text p{font-size:1.05rem;color:rgba(255,255,255,.85);margin-bottom:28px;max-width:520px}
.hero__btns{display:flex;gap:12px;flex-wrap:wrap}

/* ===== SECTION HEADERS ===== */
.section__title{font-size:1.5rem;font-weight:800;color:var(--text)}
.section__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap;gap:12px}
.section__header .section__title{margin-bottom:0}
.section__link{color:var(--green);font-weight:600;font-size:.9rem}
.section__link:hover{text-decoration:underline}
.section__count{font-size:.85rem;color:var(--gray-400);background:var(--gray-100);padding:3px 12px;border-radius:20px}

/* ===== LISTINGS GRID ===== */
.listings__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.listing-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:all .18s;cursor:pointer;display:flex;flex-direction:column;position:relative;text-decoration:none;color:inherit}
.listing-card:hover{box-shadow:var(--shadow-md);border-color:var(--gray-300);transform:translateY(-2px)}
.listing-card__thumb{width:100%;height:175px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;font-size:3.2rem;flex-shrink:0;overflow:hidden}
.listing-card__thumb img{width:100%;height:100%;object-fit:cover}
.listing-card__body{padding:12px;display:flex;flex-direction:column;flex:1;background:var(--surface)}
.listing-card__category{font-size:.7rem;font-weight:600;color:var(--green);background:var(--green-light);padding:2px 7px;border-radius:4px;display:inline-block;margin-bottom:7px;width:fit-content}
.listing-card__title{font-size:.9rem;font-weight:600;margin-bottom:6px;color:var(--text);line-height:1.35;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.listing-card__price{font-size:1.05rem;font-weight:800;color:var(--green);margin-bottom:8px}
.listing-card__price small{font-size:.72rem;font-weight:600}
.listing-card__meta{display:flex;justify-content:space-between;font-size:.75rem;color:var(--gray-400);margin-top:auto}
.listing-card__fav{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.9);border:none;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.95rem;transition:all .15s;z-index:2}
.listing-card__fav:hover{background:var(--surface);transform:scale(1.15)}
.listing-card__fav.active{color:#e11d48}
.price--free{color:var(--green)}
.price--ask{color:var(--gray-500);font-size:.9rem}

/* ===== FILTERS BAR ===== */
.filters-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;margin-bottom:20px;display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
.filter-group{display:flex;flex-direction:column;gap:5px;min-width:130px}
.filter-group label{font-size:.75rem;font-weight:600;color:var(--gray-600)}
.filter-group select,.filter-group input{padding:8px 10px;border:1.5px solid var(--border);border-radius:7px;font-size:.85rem;font-family:var(--font);outline:none;background:var(--surface);color:var(--text)}
.filter-group select:focus,.filter-group input:focus{border-color:var(--green)}
.filter-price-row{display:flex;gap:6px;align-items:center}
.filter-price-row input{width:90px}
.filter-price-row span{font-size:.8rem;color:var(--gray-400)}
.filters-bar__actions{display:flex;gap:8px;margin-left:auto}

/* ===== PAGINATION ===== */
.pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:36px;flex-wrap:wrap}
.pagination__btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--border);border-radius:7px;font-size:.87rem;font-weight:600;cursor:pointer;transition:all .15s;background:#fff;color:var(--text)}
.pagination__btn:hover{border-color:var(--green);color:var(--green)}
.pagination__btn.active{background:var(--green);border-color:var(--green);color:#fff}
.pagination__btn:disabled{opacity:.4;cursor:not-allowed}
.pagination__info{font-size:.83rem;color:var(--gray-400);padding:0 8px}

/* ===== EMPTY STATE ===== */
.empty-state{text-align:center;padding:80px 20px}
.empty-state__icon{font-size:4rem;margin-bottom:16px}
.empty-state h3{font-size:1.4rem;font-weight:700;margin-bottom:8px}
.empty-state p{color:var(--gray-500);margin-bottom:24px}

/* ===== HOW IT WORKS ===== */
.how__steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:36px}
.how__step{text-align:center;padding:28px 18px;background:var(--surface);border:1px solid var(--border);border-radius:14px;position:relative}
.how__step-num{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--green);color:#fff;font-size:.78rem;font-weight:700;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.how__step-icon{font-size:2rem;margin-bottom:12px}
.how__step h3{font-size:.95rem;font-weight:700;margin-bottom:7px}
.how__step p{font-size:.83rem;color:var(--gray-500);line-height:1.6}

/* ===== DETAIL MODAL ===== */
.detail-photos{margin-bottom:18px}
.detail-photo-main{width:100%;height:300px;border-radius:12px;overflow:hidden;background:var(--gray-100);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.detail-photo-main img{width:100%;height:100%;object-fit:cover}
.detail-photo-main .emoji-thumb{font-size:5rem}
.detail-photo-thumbs{display:flex;gap:7px;flex-wrap:wrap}
.detail-photo-thumbs img{width:62px;height:62px;object-fit:cover;border-radius:7px;cursor:pointer;border:2px solid transparent;opacity:.7;transition:all .15s}
.detail-photo-thumbs img:hover{opacity:1}
.detail-photo-thumbs img.active{border-color:var(--green);opacity:1}
.detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.detail-price{font-size:1.7rem;font-weight:800;color:var(--green);white-space:nowrap}
.detail-price small{font-size:1rem}
.detail-seller{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--gray-200)}
.detail-seller__avatar{width:38px;height:38px;background:var(--green);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem;flex-shrink:0}
.detail-seller__info strong{display:block;font-size:.92rem}
.detail-seller__info span{font-size:.77rem;color:var(--gray-400)}
.detail-info{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.detail-info-item{background:var(--gray-50);padding:11px;border-radius:8px}
.detail-info-item label{font-size:.72rem;color:var(--gray-400);font-weight:600;display:block;margin-bottom:2px}
.detail-info-item span{font-size:.88rem;font-weight:600}
.detail-desc{background:var(--gray-50);padding:14px;border-radius:8px;font-size:.9rem;line-height:1.7;color:var(--gray-600);margin-bottom:16px;white-space:pre-line}
.detail-contact{background:var(--green-light);border:1px solid #bbf7d0;padding:14px;border-radius:10px;margin-bottom:14px}
.detail-contact h4{font-size:.82rem;color:var(--green-dark);font-weight:700;margin-bottom:6px}
.detail-contact p{font-size:.93rem;font-weight:600;margin-bottom:3px}

/* ===== MODALS ===== */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:999;align-items:center;justify-content:center;padding:16px}
.modal-overlay.active{display:flex}
.modal{background:var(--surface);border-radius:var(--radius-lg);padding:32px;width:100%;max-width:480px;position:relative;max-height:92vh;overflow-y:auto;box-shadow:var(--shadow-lg)}
.modal--wide{max-width:680px}
.modal__close{position:absolute;top:14px;right:14px;background:var(--gray-100);border:none;width:30px;height:30px;border-radius:50%;font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--gray-600);transition:background .15s}
.modal__close:hover{background:var(--gray-200)}
.modal h2{font-size:1.4rem;font-weight:800;margin-bottom:4px}
.modal__sub{color:var(--gray-500);font-size:.88rem;margin-bottom:20px}
.modal__footer{text-align:center;margin-top:14px;font-size:.86rem;color:var(--gray-500)}
.modal__footer a{color:var(--green);font-weight:600}

/* ===== FORMS ===== */
.req{color:var(--red)}
.form-group{margin-bottom:16px}
.form-group:last-child{margin-bottom:0}
.form-group>label:not(.radio-option):not(.checkbox-option){display:block;font-size:.84rem;font-weight:600;margin-bottom:6px;color:var(--text)}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 13px;border:1.5px solid var(--border);border-radius:8px;font-size:.93rem;font-family:var(--font);outline:none;transition:border-color .15s;background:var(--surface);color:var(--text)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(26,143,75,.08)}
.form-group textarea{resize:vertical;line-height:1.6}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-error{color:var(--red);font-size:.83rem;margin-bottom:10px;min-height:18px}
.input-hint{font-size:.75rem;color:var(--gray-400);margin-top:4px}
.input-with-unit{position:relative;display:flex}
.input-with-unit input{border-radius:8px 0 0 8px;flex:1}
.input-unit{display:flex;align-items:center;padding:0 12px;background:var(--gray-100);border:1.5px solid var(--border);border-left:none;border-radius:0 8px 8px 0;font-size:.85rem;font-weight:600;color:var(--gray-600);white-space:nowrap}
.radio-group{display:flex;flex-direction:column;gap:8px}
.radio-group--inline{flex-direction:row;flex-wrap:wrap;gap:8px}
.radio-option{cursor:pointer;display:flex}
.radio-option input[type="radio"]{display:none}
.radio-box{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1.5px solid var(--border);border-radius:9px;cursor:pointer;transition:all .15s;width:100%}
.radio-group--inline .radio-box{width:auto;padding:9px 14px}
.radio-option input:checked+.radio-box{border-color:var(--green);background:var(--green-light)}
.radio-dot{width:17px;height:17px;border-radius:50%;border:2px solid var(--gray-300);flex-shrink:0;transition:all .15s;display:flex;align-items:center;justify-content:center}
.radio-option input:checked+.radio-box .radio-dot{border-color:var(--green);background:var(--green);box-shadow:inset 0 0 0 3px #fff}
.radio-box>span:last-child strong{display:block;font-size:.88rem}
.radio-box>span:last-child small{font-size:.75rem;color:var(--gray-400);display:block;margin-top:1px}
.radio-group--inline .radio-box>span:last-child strong{font-size:.86rem}
.checkbox-option{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:.9rem}
.checkbox-option input[type="checkbox"]{width:17px;height:17px;accent-color:var(--green);cursor:pointer;flex-shrink:0}
.checkbox-option--block{padding:12px 14px;border:1.5px solid var(--border);border-radius:9px;width:100%;transition:all .15s}
.checkbox-stack{display:flex;flex-direction:column;gap:9px}

/* ===== FOOTER ===== */
.footer{background:#0a0e17;color:rgba(255,255,255,.75);padding:52px 0 0}
.footer__inner{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:36px;padding-bottom:44px}
.footer__brand .logo{margin-bottom:10px}
.footer__brand .logo__prodaj{color:#fff}
.footer__brand p{font-size:.84rem;color:rgba(255,255,255,.5);max-width:210px;line-height:1.6}
.footer__col h4{color:#fff;font-size:.87rem;font-weight:700;margin-bottom:14px}
.footer__col a{display:block;margin-bottom:9px;font-size:.83rem;color:rgba(255,255,255,.58);transition:color .15s}
.footer__col a:hover{color:#fff}
.footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0}
.footer__bottom .container{display:flex;justify-content:space-between;font-size:.8rem;color:rgba(255,255,255,.38)}

/* ===== TOAST ===== */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(80px);background:var(--gray-800);color:#fff;padding:13px 22px;border-radius:10px;font-size:.9rem;font-weight:500;z-index:9999;transition:transform .3s ease;pointer-events:none;white-space:nowrap;box-shadow:var(--shadow-lg)}
.toast.show{transform:translateX(-50%) translateY(0)}
.toast--success{background:var(--green)}
.toast--error{background:var(--red)}
.toast--info{background:var(--gray-700)}

/* ===== PROFILE PAGE ===== */
.profile-page{padding:40px 0 80px;background:var(--gray-50);min-height:calc(100vh - 120px)}
.profile-layout{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
.profile-sidebar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;position:sticky;top:80px}
.profile-avatar{background:linear-gradient(135deg,#0f5c2e,#22c068);padding:32px 20px;text-align:center;color:#fff}
.profile-avatar__circle{width:72px;height:72px;background:rgba(255,255,255,.25);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:800;margin:0 auto 12px}
.profile-avatar__name{font-size:1.1rem;font-weight:700;margin-bottom:4px}
.profile-avatar__since{font-size:.78rem;color:rgba(255,255,255,.7)}
.profile-nav{padding:8px 0}
.profile-nav a{display:flex;align-items:center;gap:10px;padding:11px 18px;font-size:.9rem;font-weight:500;color:var(--text);transition:all .15s;cursor:pointer}
.profile-nav a:hover{background:var(--gray-50);color:var(--green)}
.profile-nav a.active{background:var(--green-light);color:var(--green);font-weight:600}
.profile-nav a .nav-icon{font-size:1.1rem;width:22px;text-align:center}
.profile-content{display:flex;flex-direction:column;gap:20px}
.profile-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px}
.profile-section h3{font-size:1.05rem;font-weight:700;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}
.profile-stat{background:var(--gray-50);border-radius:10px;padding:16px;text-align:center}
.profile-stat strong{display:block;font-size:1.6rem;font-weight:800;color:var(--green)}
.profile-stat span{font-size:.78rem;color:var(--gray-500)}
.profile-tabs{display:flex;gap:0;border-bottom:2px solid var(--gray-200);margin-bottom:20px}
.profile-tab{padding:10px 18px;font-size:.9rem;font-weight:600;cursor:pointer;color:var(--gray-500);border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s}
.profile-tab.active{color:var(--green);border-bottom-color:var(--green)}
.profile-tab:hover{color:var(--text)}
.my-ad-card{display:flex;gap:14px;padding:14px;border:1px solid var(--border);border-radius:10px;margin-bottom:10px;background:var(--surface)}
.my-ad-card__thumb{width:72px;height:72px;border-radius:8px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;font-size:1.8rem;overflow:hidden;flex-shrink:0}
.my-ad-card__thumb img{width:100%;height:100%;object-fit:cover}
.my-ad-card__body{flex:1;min-width:0}
.my-ad-card__title{font-size:.9rem;font-weight:600;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.my-ad-card__price{font-size:.93rem;font-weight:700;color:var(--green);margin-bottom:6px}
.my-ad-card__meta{font-size:.75rem;color:var(--gray-400)}
.expiry-badge{font-size:.75rem;font-weight:600;padding:3px 8px;border-radius:6px;margin-top:6px;display:inline-block}
.expiry-badge--urgent{background:#fef2f2;color:#dc2626;border:1px solid #fca5a5}
.expiry-badge--warning{background:#fffbeb;color:#d97706;border:1px solid #fcd34d}
.expiry-badge--expired{background:#f3f4f6;color:#6b7280;border:1px solid #d1d5db}
.my-ad-card__actions{display:flex;gap:7px;flex-shrink:0;align-items:flex-start}
.badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:.7rem;font-weight:600}
.badge--active{background:var(--green-light);color:var(--green)}

/* ===== SEARCH PAGE ===== */
.search-page{padding:32px 0 80px;background:var(--gray-50);min-height:calc(100vh - 120px)}
.search-layout{display:grid;grid-template-columns:240px 1fr;gap:20px;align-items:start}
.search-sidebar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;position:sticky;top:80px}
.search-sidebar h3{font-size:.92rem;font-weight:700;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.sidebar-filter{margin-bottom:18px}
.sidebar-filter label{font-size:.78rem;font-weight:600;color:var(--gray-600);display:block;margin-bottom:6px}
.sidebar-filter select,.sidebar-filter input{width:100%;padding:8px 10px;border:1.5px solid var(--border);border-radius:7px;font-size:.85rem;font-family:var(--font);outline:none;background:var(--surface);color:var(--text)}
.sidebar-filter select:focus,.sidebar-filter input:focus{border-color:var(--green)}
.sort-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px}
.sort-bar__info{font-size:.87rem;color:var(--gray-500)}
.sort-bar__info strong{color:var(--text)}
.sort-bar select{padding:7px 11px;border:1.5px solid var(--border);border-radius:7px;font-size:.85rem;font-family:var(--font);outline:none;background:var(--surface);color:var(--text)}
.sort-bar select:focus{border-color:var(--green)}

/* ===== POST PAGE ===== */
.post-page{padding:36px 0 80px;background:var(--gray-50);min-height:calc(100vh - 120px)}
.post-page__head{margin-bottom:28px}
.post-page__head h1{font-size:1.9rem;font-weight:800;margin-bottom:5px}
.post-page__head p{color:var(--gray-500)}
.post-layout{display:grid;grid-template-columns:1fr 290px;gap:22px;align-items:start}
.form-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:14px;overflow:hidden}
.form-card__head{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--border);background:var(--bg)}
.form-card__num{width:28px;height:28px;background:var(--green);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.82rem;font-weight:700;flex-shrink:0}
.form-card__head h2{font-size:1rem;font-weight:700;flex:1}
.form-card__hint{font-size:.76rem;color:var(--gray-400)}
.form-card__body{padding:22px;background:var(--surface)}
.photo-upload-area{border:2px dashed var(--gray-200);border-radius:12px;padding:32px 20px;text-align:center;cursor:pointer;transition:all .2s;background:var(--gray-50);display:flex;align-items:center;justify-content:center;gap:18px}
.photo-upload-area:hover{border-color:var(--green);background:var(--green-light)}
.photo-upload-area__icon{font-size:2.2rem}
.photo-upload-area__text strong{display:block;font-size:.95rem;font-weight:700;margin-bottom:3px}
.photo-upload-area__text span{display:block;font-size:.83rem;color:var(--gray-500)}
.photo-preview-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:14px}
.photo-thumb{position:relative;aspect-ratio:1;border-radius:9px;overflow:hidden;background:var(--gray-100)}
.photo-thumb img{width:100%;height:100%;object-fit:cover}
.photo-thumb__label{position:absolute;bottom:0;left:0;right:0;background:rgba(26,143,75,.85);color:#fff;font-size:.65rem;font-weight:700;text-align:center;padding:3px}
.photo-thumb__remove{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;border:none;border-radius:50%;width:20px;height:20px;cursor:pointer;font-size:.7rem;display:flex;align-items:center;justify-content:center}
.photo-thumb__remove:hover{background:var(--red)}
.price-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.price-row .input-with-unit{flex:1;min-width:160px}
.post-tips{position:sticky;top:80px;display:flex;flex-direction:column;gap:14px}
.tips-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px}
.tips-card h3{font-size:.9rem;font-weight:700;margin-bottom:12px}
.tips-card ul{padding-left:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.tips-card ul li{font-size:.82rem;color:var(--gray-500);line-height:1.5;padding-left:14px;position:relative}
.tips-card ul li::before{content:'•';position:absolute;left:0;color:var(--green);font-weight:700}
.tips-card ul li strong{color:var(--text)}
.tips-card--green{background:var(--green-light);border-color:#bbf7d0}
.tips-card--green p{font-size:.83rem;color:var(--gray-600);line-height:1.6}
.post-submit{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px}
.post-submit__note{text-align:center;font-size:.79rem;color:var(--gray-400);margin-top:10px}
.success-screen{position:fixed;inset:0;background:rgba(255,255,255,.98);z-index:999;display:flex;align-items:center;justify-content:center}
.success-screen__inner{text-align:center;max-width:420px;padding:40px 20px}
.success-screen__icon{font-size:4.5rem;margin-bottom:18px}
.success-screen h2{font-size:1.8rem;font-weight:800;margin-bottom:9px}
.success-screen p{color:var(--gray-500);font-size:1rem;margin-bottom:28px}
.success-screen__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* ===== VERCEL CONFIG PAGE ===== */
.page-hero{background:var(--gray-50);padding:48px 0;border-bottom:1px solid var(--gray-200)}
.page-hero h1{font-size:2rem;font-weight:800;margin-bottom:8px}
.page-hero p{color:var(--gray-500)}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .listings__grid{grid-template-columns:repeat(3,1fr)}
  .profile-layout{grid-template-columns:1fr}
  .profile-sidebar{position:static}
  .search-layout{grid-template-columns:1fr}
  .search-sidebar{position:static}
  .post-layout{grid-template-columns:1fr}
  .post-tips{position:static}
  .footer__inner{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .header__top-inner{flex-wrap:wrap}
  .search-bar{order:3;width:100%;flex-basis:100%}
  .search-bar__select{display:none}
  .listings__grid{grid-template-columns:repeat(2,1fr)}
  .how__steps{grid-template-columns:repeat(2,1fr)}
  .hero__text h1{font-size:1.9rem}
  .form-row{grid-template-columns:1fr}
  .detail-info{grid-template-columns:1fr}
  .profile-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .listings__grid{grid-template-columns:1fr}
  .how__steps{grid-template-columns:1fr}
  .footer__inner{grid-template-columns:1fr}
  .footer__bottom .container{flex-direction:column;gap:5px;text-align:center}
  .hero__btns{flex-direction:column}
  .photo-preview-grid{grid-template-columns:repeat(3,1fr)}
  .profile-stats{grid-template-columns:1fr}
}

/* ===== SELLER SCORE (on listing cards & detail modal) ===== */
.seller-score{display:inline-flex;align-items:center;gap:6px;text-decoration:none;flex-shrink:0}
.seller-score__pos{background:#f0fdf4;color:#15803d;border:1px solid #86efac;padding:3px 9px;border-radius:20px;font-size:.75rem;font-weight:700}
.seller-score__neg{background:#fef2f2;color:#dc2626;border:1px solid #fca5a5;padding:3px 9px;border-radius:20px;font-size:.75rem;font-weight:700}
.listing-score{font-size:.73rem;color:var(--gray-400)}

/* detail-seller flex update */
.detail-seller{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--gray-200)}

/* ===== PHOTO THUMB UPGRADES ===== */
.photo-thumb { cursor: pointer; }
.photo-thumb:hover img { opacity: .88; }
.photo-thumb__label--set {
  cursor: pointer !important;
  background: rgba(0,0,0,.55) !important;
  font-size: .62rem !important;
  opacity: 0;
  transition: opacity .15s;
}
.photo-thumb:hover .photo-thumb__label--set { opacity: 1; }
.photo-thumb__label--set:hover { background: rgba(26,143,75,.9) !important; }





/* ===== LISTING CARD FIREFOX FIX ===== */
.listing-card { cursor: pointer !important; }
.listing-card__fav { cursor: pointer !important; position: relative; z-index: 2; }

/* ===== DARK MODE OVERRIDES ===== */
[data-theme="dark"] .form-card,
[data-theme="dark"] .form-card__body,
[data-theme="dark"] .form-card__head,
[data-theme="dark"] .tips-card,
[data-theme="dark"] .post-submit,
[data-theme="dark"] .profile-section,
[data-theme="dark"] .profile-sidebar,
[data-theme="dark"] .search-filters,
[data-theme="dark"] .conv-list,
[data-theme="dark"] .chat-head,
[data-theme="dark"] .chat-input,
[data-theme="dark"] .msg--in .msg__bubble,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .mod-card,
[data-theme="dark"] .my-ad-card,
[data-theme="dark"] .oglas-info,
[data-theme="dark"] .og-info
{ background:var(--surface) !important; border-color:var(--border) !important; }

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .sidebar-filter input,
[data-theme="dark"] .sidebar-filter select,
[data-theme="dark"] .sort-bar select,
[data-theme="dark"] .search-bar__input,
[data-theme="dark"] .chat-input textarea,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] select,
[data-theme="dark"] textarea
{ background:var(--surface) !important; color:var(--text) !important; border-color:var(--border) !important; }

[data-theme="dark"] .listing-card,
[data-theme="dark"] .listing-card__body
{ background:var(--surface) !important; border-color:var(--border) !important; }

[data-theme="dark"] .pagination__btn
{ background:var(--surface) !important; color:var(--text) !important; border-color:var(--border) !important; }

[data-theme="dark"] .msg--in .msg__bubble
{ background:var(--surface) !important; color:var(--text) !important; }

[data-theme="dark"] .header__top
{ background:var(--surface) !important; border-color:var(--border) !important; }

[data-theme="dark"] .chat-area,
[data-theme="dark"] .chat-messages,
[data-theme="dark"] #chatArea,
[data-theme="dark"] #chatMsgs { background:var(--bg) !important; }
[data-theme="dark"] .messages-page { background:var(--bg) !important; }

/* ===== LOADING SKELETON ===== */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1e2130 25%, #2d3045 50%, #1e2130 75%);
  background-size: 800px 100%;
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skeleton-thumb { width:100%; aspect-ratio:4/3; }
.skeleton-body  { padding:12px; display:flex; flex-direction:column; gap:8px; }
.skeleton-line  { height:14px; border-radius:4px; }
.skeleton-line--short { width:55%; }
.skeleton-line--price { width:40%; height:18px; }
.skeleton-line--meta  { width:70%; height:11px; }
