*, ::after, ::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0f0d;
  --bg2: #0e1612;
  --g1: #1a4731;
  --g2: #2d7a50;
  --g3: #4abe80;
  --gold: #e8b84b;
  --teal: #38b2ac;
  --purple: #a78bda;
  --rose: #e87c8a;
  --amber: #f59e0b;
  --solar: #facc15;
  --cream: #f5f0e8;
  --muted: rgba(245, 240, 232, 0.82);
  --glass: rgba(255, 255, 255, 0.045);
  --gb: rgba(255, 255, 255, 0.09);
  --font: 'Outfit', sans-serif;
  --font-u: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  direction: ltr; /* !important ہٹا دیا گیا ہے تاکہ RTL کام کر سکے */
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  position: relative;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* RTL Support Rules */
body.rtl, body.rtl .filter-bar {
  direction: rtl;
}

body.rtl .ad-desc, body.rtl .ad-meta, body.rtl .ad-title, 
body.rtl .dname, body.rtl .drole, body.rtl .hero-h1, body.rtl .tag-line {
  text-align: right;
  font-family: var(--font-u);
}

body.rtl .about-h1, body.rtl .h1, body.rtl .logo, body.rtl .sec-h2,
body.rtl .btn-ghost, body.rtl .btn-gold, body.rtl .btn-green, 
body.rtl .ctile-name, body.rtl .form-group input, body.rtl .form-group label, 
body.rtl .form-group select, body.rtl .form-group textarea, 
body.rtl .modal-body p, body.rtl .modal-hdr h3, body.rtl .toast,
body.rtl .about-body, body.rtl .hero-p, body.rtl .iuz-hint, 
body.rtl .iuz-text, body.rtl .p-bio, body.rtl .val-text {
  font-family: var(--font-u);
  letter-spacing: 0;
}

body.rtl .about-body, body.rtl .hero-p, body.rtl .iuz-hint, 
body.rtl .iuz-text, body.rtl .p-bio, body.rtl .val-text {
  line-height: 2.1;
}

body.rtl .drow:hover {
  transform: translateX(-4px) !important;
}

body.rtl .hstat {
  border-left: none;
  border-right: 2px solid rgba(232,184,75,.35);
  padding-left: 0;
  padding-right: 1rem;
}

body.rtl nav .nav-inner {
  flex-direction: row-reverse;
}

body.rtl .drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

#menu-cb:checked ~ .mobile-nav .mobile-drawer,
body.rtl #menu-cb:checked ~ .mobile-nav .mobile-drawer,
body.rtl .drawer.open {
  transform: translateX(0);
}

body.rtl .mobile-drawer {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

body.rtl .filter-bar::-webkit-scrollbar {
  display: none;
}

/* Typography & General Styling */
.logo, .drawer-logo, .h1, .sec-h2, .about-h1, 
.admin-hdr h2, .p-name, .sbn, .val-title, .ft-logo, .view-price {
  font-family: 'Cormorant Garamond', serif;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  color: var(--cream);
  transition: opacity .2s;
}

.logo:hover {
  opacity: .75;
}

.admin-link:hover, .drawer-logo span, .fb-star.active, 
.ft-logo span, .logo span, .promo-desc strong {
  color: var(--gold);
}

#cur, .lang-btn.active {
  background: var(--gold);
}

#menu-cb:checked ~ .mobile-nav, .h1 em, .page.active {
  display: block;
}

#about, #directory, #market {
  padding: 7rem 3rem 5rem;
}

.about-h1 span, .h1 em, .sec-h2 em {
  font-style: italic;
}

.ad-title, .admin-item-name, .cat-hd span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.ad-img-wrap img, .ad-slider img, .iprev img, .pav img, .view-main-img, .view-thumb {
  object-fit: cover;
}

#admin-panel, #toast {
  background: rgba(10,15,13,.97);
  backdrop-filter: blur(20px);
}

.ctile, .img-upload-zone, .no-ads, .sb-item, footer {
  text-align: center;
}

#lb-img, .fb {
  user-select: none;
}

.nav-center a:hover {
  text-decoration: underline;
}

#cur, #curR, .mobile-nav, nav {
  position: fixed;
}

@media(pointer:fine) {
  body {
    cursor: none;
  }
}

#cur, #curR {
  border-radius: 50%;
  pointer-events: none;
  top: 0;
  left: 0;
  will-change: transform;
  z-index: 10000;
}

#cur {
  width: 10px;
  height: 10px;
  transition: width .15s, height .15s;
}

#curR {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(232,184,75,.6);
  z-index: 9999;
  transition: width .18s, height .18s;
}

@media(pointer:coarse) {
  #cur, #curR {
    display: none;
  }
}

nav {
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  transition: .4s;
  gap: 1rem;
}

nav.scrolled {
  background: rgba(10,15,13,.97);
  backdrop-filter: blur(24px);
  padding: .75rem 3rem;
  box-shadow: 0 1px 0 var(--gb);
}

.hero-search input, .srch-wrap input {
  backdrop-filter: blur(12px);
  outline: 0;
  font-family: var(--font);
}

#lb-img.fading, .dcall, .reveal {
  opacity: 0;
}

.lang-btn, .nav-center a {
  color: var(--muted);
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-center a {
  text-decoration: none;
  padding: .4rem .9rem;
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 400;
  border: 1px solid transparent;
}

.nav-center a:hover {
  color: var(--cream);
  border-color: var(--gb);
  background: var(--glass);
}

.nav-center a.active {
  color: var(--gold);
  border-color: rgba(232,184,75,.35);
  background: rgba(232,184,75,.09);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--gb);
  border-radius: 50px;
  padding: .25rem .3rem;
  flex-shrink: 0;
}

.lang-btn {
  padding: .3rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 500;
  border: none;
  background: 0 0;
}

.lang-btn.active {
  color: #0a0f0d;
}

.lang-btn:hover:not(.active) {
  color: var(--cream);
  background: rgba(255,255,255,.08);
}

.menu-btn {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--gb);
  border-radius: 10px;
  padding: .5rem .75rem;
  cursor: pointer;
  color: var(--cream);
  font-size: 1.2rem;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: .2s;
}

.hero, .page {
  min-height: 100vh;
}

.menu-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.2);
}

input#menu-cb {
  display: none !important;
  position: absolute;
  left: -9999px;
}

.mobile-nav {
  display: none;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}

.mobile-drawer, .mobile-nav::before {
  pointer-events: all;
  position: absolute;
}

.mobile-nav::before {
  content: '';
  inset: 0;
  background: rgba(5,10,8,.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s;
}

#menu-cb:checked ~ .mobile-nav::before, .drow:hover .dcall {
  opacity: 1;
}

.mobile-drawer {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: linear-gradient(180deg, #0c1812 0, #091410 100%);
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
  overflow: hidden;
}

.drawer-close, .hero-search input {
  background: rgba(255,255,255,.07);
}

#toast, .blob-layer {
  pointer-events: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--gb);
}

.drawer-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
}

.drawer-close, .drawer-link {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--gb);
  font-size: 1rem;
  justify-content: center;
  line-height: 1;
  transition: .2s;
}

.drawer-close:hover, .modal-close:hover {
  color: var(--cream);
  background: rgba(255,255,255,.12);
}

.drawer-links {
  flex: 1;
  overflow-y: auto;
  padding: 1rem .8rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ad-card, .ad-desc, .ad-img-wrap, .ad-slider, .ad-title, 
.blob-layer, .cat-hd, .cat-hd span, .marquee {
  overflow: hidden;
}

.drawer-link {
  gap: .9rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 500;
  transition: .22s;
  margin-bottom: .2rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.drawer-link:hover {
  background: rgba(255,255,255,.06);
  color: var(--cream);
  border-color: var(--gb);
}

.drawer-link.active {
  background: rgba(232,184,75,.1);
  border-color: rgba(232,184,75,.25);
  color: var(--gold);
}

.drawer-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .2s;
}

.drawer-cta, .drawer-lang-btn {
  cursor: pointer;
  transition: .2s;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}

.drawer-link.active .drawer-link-icon {
  background: rgba(232,184,75,.15);
}

.drawer-link-text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}

.drawer-link-text span {
  font-size: .7rem;
  color: rgba(245,240,232,.35);
  font-weight: 400;
}

.eyebrow span, .sec-label span {
  font-size: .74rem;
  text-transform: uppercase;
}

.drawer-divider {
  height: 1px;
  background: var(--gb);
  margin: .5rem .2rem;
}

.drawer-cta {
  margin: 1rem .8rem .5rem;
  background: linear-gradient(135deg, var(--gold), #c9962e);
  color: #0a0f0d;
  padding: .85rem 1.2rem;
  border-radius: 12px;
  border: none;
  font-size: .9rem;
  font-weight: 700;
  width: calc(100% - 1.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.drawer-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.drawer-lang {
  padding: .8rem 1.4rem 1.2rem;
  border-top: 1px solid var(--gb);
  direction: ltr;
}

.drawer-lang-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}

.drawer-lang-btns {
  display: flex;
  gap: .4rem;
}

#admin-panel, .fab-post.hidden, .lb-arrow.lb-hidden, .page {
  display: none;
}

.drawer-lang-btn {
  flex: 1;
  padding: .5rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--gb);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}

.hero, .sec-label {
  align-items: center;
}

.h1, .sec-h2 {
  color: var(--cream);
  font-weight: 600;
}

.drawer-lang-btn.active {
  background: var(--gold);
  color: #0a0f0d;
  border-color: var(--gold);
}

.sec-label {
  display: flex;
  gap: 1rem;
  margin-bottom: .6rem;
}

.sec-label::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.sec-label span {
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--gold);
}

.sec-h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.5px;
}

.sec-h2 em {
  color: var(--g3);
}

.blob-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero, .hero-right, .home-sec, .marquee, footer {
  z-index: 10;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ad-img-wrap, .ad-slider, .hero, .hero-right, .home-sec, .marquee, .trust-strip {
  position: relative;
}

.b1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,122,80,.25), transparent 70%);
  top: -100px;
  left: -80px;
  animation: 12s ease-in-out infinite bf1;
}

.b2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,184,75,.12), transparent 70%);
  top: 200px;
  right: -80px;
  animation: 15s ease-in-out infinite bf2;
}

.b3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(74,190,128,.1), transparent 70%);
  bottom: 100px;
  left: 40%;
  animation: 18s ease-in-out infinite bf3;
}

@keyframes bf1 {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(40px,30px); }
  66% { transform: translate(-20px,50px); }
}

@keyframes bf2 {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(-40px,20px); }
  66% { transform: translate(15px,-30px); }
}

@keyframes bf3 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-30px,-40px); }
}

.hero {
  padding: 7rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.btn-gold, .eyebrow {
  display: inline-flex;
}

.eyebrow {
  align-items: center;
  gap: .6rem;
  background: rgba(232,184,75,.1);
  border: 1px solid rgba(232,184,75,.28);
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
  animation: .8s both slideL;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: 2s infinite pulse;
  flex-shrink: 0;
}

.eyebrow span {
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.h1 {
  font-size: clamp(2.8rem, 5vw, 6rem);
  line-height: 1;
  letter-spacing: -1.5px;
  animation: .9s .1s both slideL;
}

.h1 em {
  color: var(--g3);
}

.hero-p {
  margin-top: 1.5rem;
  font-size: .97rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 440px;
  animation: .9s .2s both slideL;
}

.hero-btns {
  margin-top: 1.8rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  animation: .9s .3s both slideL;
}

.btn-ghost, .btn-gold {
  align-items: center;
  border-radius: 12px;
}

.btn-gold {
  gap: .5rem;
  background: linear-gradient(135deg, var(--gold), #c9962e);
  color: #0a0f0d;
  padding: .8rem 1.8rem;
  border: none;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(232,184,75,.3);
}

.btn-ghost, .btn-green {
  display: inline-flex;
  gap: .5rem;
  padding: .8rem 1.6rem;
  font-family: var(--font);
  font-size: .88rem;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(232,184,75,.5);
}

.btn-ghost {
  background: var(--glass);
  color: var(--cream);
  border: 1px solid var(--gb);
  font-weight: 500;
  transition: background .2s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.08);
}

.btn-green {
  align-items: center;
  background: linear-gradient(135deg, var(--g2), var(--g3));
  color: #0a0f0d;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(74,190,128,.28);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74,190,128,.45);
}

.hstats {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  animation: .9s .4s both slideL;
}

.hstat {
  border-left: 2px solid rgba(232,184,75,.35);
  padding-left: 1rem;
}

.hstat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.fb, .hero-search input, .srch-wrap input {
  font-family: var(--font);
}

.hstat-l {
  font-size: .73rem;
  color: var(--muted);
  margin-top: .2rem;
}

.hero-search {
  margin-top: 1.6rem;
  display: flex;
  gap: .5rem;
  animation: .9s .25s both slideL;
  max-width: 460px;
}

.hero-search input {
  flex: 1;
  padding: .75rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(232,184,75,.3);
  color: var(--cream);
  font-size: .88rem;
  transition: border-color .25s;
}

.hero-search input::placeholder {
  color: rgba(245,240,232,.35);
}

.hero-search input:focus {
  border-color: rgba(232,184,75,.6);
  box-shadow: 0 0 0 3px rgba(232,184,75,.1);
}

.hero-search button {
  padding: .75rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #c9962e);
  color: #0a0f0d;
  border: none;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}

.hero-search button:hover {
  opacity: .88;
}

.trust-strip {
  z-index: 10;
  padding: .7rem 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--gb);
  background: rgba(255,255,255,.015);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  color: var(--muted);
  white-space: nowrap;
}

.m-item, .sl-btn {
  align-items: center;
}

.trust-item span {
  color: var(--g3);
  font-weight: 500;
}

.hero-right {
  animation: 1s .25s both slideR;
}

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .7rem;
}

.ctile {
  background: var(--glass);
  border: 1px solid var(--gb);
  border-radius: 14px;
  padding: 1rem .8rem;
  cursor: pointer;
  transition: .3s;
}

.ctile:hover {
  transform: translateY(-4px);
  border-color: rgba(74,190,128,.4);
  background: rgba(74,190,128,.07);
}

.ctile-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: .4rem;
}

.ctile-name {
  font-size: .72rem;
  font-weight: 500;
  color: var(--cream);
}

.fb, .m-item {
  color: var(--muted);
}

.marquee {
  padding: 1.2rem 0;
  border-top: 1px solid var(--gb);
  border-bottom: 1px solid var(--gb);
  background: rgba(255,255,255,.018);
}

.m-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: 28s linear infinite mq;
  width: max-content;
}

.m-item {
  display: inline-flex;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 500;
  flex-shrink: 0;
}

.fb, .mtab {
  font-size: .8rem;
  font-weight: 500;
  transition: .2s;
  background: var(--glass);
  cursor: pointer;
}

.m-item .sep {
  color: var(--gold);
  margin-left: 1.5rem;
}

@keyframes mq {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.home-sec {
  padding: 4rem 3rem 5rem;
}

#market {
  background: radial-gradient(ellipse 60% 50% at 80% 10%, rgba(232,184,75,.06), transparent 60%), var(--bg);
}

.dir-wrap, .mkt-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.dir-head, .mkt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filt {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mkt-tabs, .srch-wrap {
  margin-bottom: 1.5rem;
}

.fb {
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--gb);
  white-space: nowrap;
}

.fb.on, .pgbtn.active {
  background: rgba(232,184,75,.14);
  border-color: rgba(232,184,75,.4);
  color: var(--gold);
}

.fb:hover:not(.on) {
  border-color: rgba(255,255,255,.18);
  color: var(--cream);
}

.srch-wrap input {
  width: 100%;
  padding: .85rem 1.3rem;
  border-radius: 12px;
  border: 1.5px solid var(--gb);
  background: rgba(255,255,255,.06);
  color: var(--cream);
  font-size: .9rem;
  transition: border-color .25s;
}

.ad-no-img, .mtab, .no-ads {
  color: var(--muted);
}

.srch-wrap input::placeholder {
  color: rgba(245,240,232,.35);
}

.srch-wrap input:focus {
  border-color: rgba(232,184,75,.5);
  box-shadow: 0 0 0 4px rgba(232,184,75,.08);
}

.mkt-tabs {
  display: flex;
  gap: .5rem;
}

.mtab {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--gb);
}

.mtab.active {
  background: rgba(74,190,128,.14);
  border-color: rgba(74,190,128,.4);
  color: var(--g3);
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  min-height: 200px;
}

.ad-no-img, .ad-top {
  display: flex;
  gap: .5rem;
}

.no-ads {
  grid-column: 1/-1;
  padding: 4rem 2rem;
}

.no-ads .no-icon {
  font-size: 3rem;
  margin-bottom: .8rem;
}

.no-ads p {
  font-size: .9rem;
}

.ad-card {
  background: var(--glass);
  border: 1px solid var(--gb);
  border-radius: 16px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
  border-color: rgba(74,190,128,.38);
}

.ad-img-wrap {
  height: 195px;
  background: rgba(255,255,255,.03);
}

.ad-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .4s;
}

.ad-card:hover .ad-img-wrap img {
  transform: scale(1.05);
}

.ad-no-img {
  height: 195px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(45,122,80,.08), rgba(10,15,13,.5));
}

.ad-no-img span, .view-meta-item {
  font-size: .78rem;
  color: var(--muted);
}

.ad-views .eye, .cat-hd span {
  font-size: .72rem;
}

.sl-btn, .sl-count {
  color: var(--cream);
  position: absolute;
}

.ad-slider {
  height: 195px;
}

.ad-slider img {
  width: 100%;
  height: 195px;
  display: block;
}

.sl-btn {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,15,13,.72);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  transition: background .2s;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.ad-cat, .sl-count {
  border-radius: 50px;
}

.ad-meta, .ad-top {
  align-items: center;
}

.sl-btn:hover {
  background: rgba(232,184,75,.7);
}

.sl-prev { left: 6px; }
.sl-next { right: 6px; }

.sl-count {
  bottom: 6px;
  right: 8px;
  background: rgba(0,0,0,.6);
  font-size: .65rem;
  padding: .15rem .5rem;
  backdrop-filter: blur(4px);
}

.ad-body {
  padding: 1rem;
}

.ad-top {
  justify-content: space-between;
  margin-bottom: .3rem;
}

.ad-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.ad-cat {
  padding: .18rem .6rem;
  font-size: .63rem;
  background: rgba(74,190,128,.12);
  border: 1px solid rgba(74,190,128,.25);
  color: var(--g3);
  flex-shrink: 0;
}

.ad-views, .val {
  border: 1px solid var(--gb);
}

.ad-title {
  font-size: .88rem;
  color: var(--cream);
  margin-bottom: .2rem;
}

.ad-desc, .ad-meta, .ad-views {
  color: var(--muted);
}

.ad-desc {
  font-size: .73rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ad-meta {
  font-size: .69rem;
  margin-top: .5rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.ad-views {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .67rem;
  background: rgba(255,255,255,.04);
  border-radius: 50px;
  padding: .12rem .5rem;
  white-space: nowrap;
}

.ad-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.btn-call-sm, .btn-wa {
  display: inline-flex;
  gap: .3rem;
  font-size: .75rem;
  text-decoration: none;
}

.cat-group, .pagination {
  margin-top: 2rem;
}

.btn-call-sm {
  align-items: center;
  padding: .4rem .85rem;
  background: linear-gradient(135deg, var(--g2), var(--g3));
  color: #0a0f0d;
  border-radius: 8px;
  font-weight: 700;
  transition: transform .2s;
  flex-shrink: 0;
}

.btn-wa, .fab-post {
  align-items: center;
}

.btn-call-sm:hover {
  transform: scale(1.04);
}

.btn-wa {
  padding: .4rem .8rem;
  background: rgba(37,211,102,.15);
  border: 1px solid rgba(37,211,102,.3);
  color: #25d366;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s;
}

.btn-del-ad, .btn-edit-ad, .pgbtn {
  transition: .2s;
  font-family: var(--font);
  cursor: pointer;
}

.btn-wa:hover {
  background: rgba(37,211,102,.25);
}

.btn-del-ad, .btn-edit-ad {
  padding: .35rem .75rem;
  border-radius: 8px;
  font-size: .71rem;
  font-weight: 600;
  border: 1px solid;
}

.btn-edit-ad {
  background: rgba(232,184,75,.1);
  border-color: rgba(232,184,75,.3);
  color: var(--gold);
}

.btn-edit-ad:hover {
  background: rgba(232,184,75,.2);
}

.btn-del-ad {
  background: rgba(232,100,100,.1);
  border-color: rgba(232,100,100,.3);
  color: #e87c8a;
}

.btn-del-ad:hover {
  background: rgba(232,100,100,.2);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.pgbtn {
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--gb);
  background: var(--glass);
  color: var(--muted);
  font-size: .8rem;
}

.pgbtn:hover {
  color: var(--cream);
  border-color: rgba(255,255,255,.2);
}

.fab-post {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 700;
  display: flex;
  gap: .6rem;
  padding: .85rem 1.6rem;
  background: linear-gradient(135deg, var(--gold), #c9962e);
  color: #0a0f0d;
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(232,184,75,.45);
  transition: transform .2s, box-shadow .2s;
}

.fab-post:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(232,184,75,.6);
}

/* Directory Section */
#directory {
  background: radial-gradient(ellipse 70% 50% at 10% 80%, rgba(45,122,80,.12), transparent 60%), var(--bg2);
}

.cat-hd {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.dname, .drole {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.cat-hd::before {
  content: '';
  width: 28px;
  min-width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.cat-hd span {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.cat-hd.teal span, .cat-hd.teal::before { background: var(--teal); color: var(--teal); }
.cat-hd.purp span, .cat-hd.purp::before { background: var(--purple); color: var(--purple); }
.cat-hd.rose span, .cat-hd.rose::before { background: var(--rose); color: var(--rose); }
.cat-hd.amber span, .cat-hd.amber::before { background: var(--amber); color: var(--amber); }
.cat-hd.green span, .cat-hd.green::before { background: var(--g3); color: var(--g3); }
.cat-hd.solar span, .cat-hd.solar::before { background: var(--solar); color: var(--solar); }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}

.dav, .dcall, .drow {
  display: flex;
}

.drow {
  align-items: flex-start;
  gap: .9rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  color: inherit;
}

.dav, .dnum {
  flex-shrink: 0;
}

.drow:hover {
  background: rgba(74,190,128,.08);
  border-color: rgba(74,190,128,.25);
  transform: translateX(4px);
}

.dav {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
}

.dname, .dnum {
  font-weight: 500;
}

.dav.g1 { background: rgba(255,200,50,.15); color: var(--gold); }
.dav.g2 { background: rgba(74,190,128,.15); color: var(--g3); }
.dav.g3 { background: rgba(90,159,232,.15); color: #5a9fe8; }
.dav.g4 { background: rgba(56,178,172,.15); color: var(--teal); }
.dav.g5 { background: rgba(167,139,218,.15); color: var(--purple); }

.admin-item-info, .dinfo {
  flex: 1;
  min-width: 0;
}

.dname {
  font-size: .85rem;
  color: var(--cream);
  line-height: 1.3;
}

.drole {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .1rem;
  line-height: 1.4;
}

#toast, .admin-hdr h2, .admin-item-name, .dnum {
  white-space: nowrap;
}

#admin-panel, .pav, .profile-card {
  overflow: hidden;
}

#admin-content, .admin-body {
  min-height: 0;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.dnum {
  font-family: monospace;
  font-size: .78rem;
  color: var(--gold);
  background: rgba(232,184,75,.09);
  padding: .22rem .6rem;
  border-radius: 6px;
  direction: ltr;
  align-self: center;
  letter-spacing: .02em;
}

.badge-v, .dcall {
  color: var(--g3);
}

.dcall {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: rgba(74,190,128,.12);
  font-size: .85rem;
  transition: opacity .2s;
}

.badge-p, .badge-v {
  align-items: center;
  border-radius: 50px;
}

.badge-a, .badge-p, .badge-v {
  display: inline-flex;
  gap: .25rem;
  padding: .15rem .5rem;
  font-size: .62rem;
  font-weight: 500;
}

.badge-v {
  background: rgba(74,190,128,.15);
  border: 1px solid rgba(74,190,128,.3);
}

.badge-p {
  background: rgba(232,184,75,.12);
  border: 1px solid rgba(232,184,75,.28);
  color: var(--gold);
}

.badge-a {
  align-items: center;
  border-radius: 50px;
  background: rgba(90,159,232,.12);
  border: 1px solid rgba(90,159,232,.28);
  color: #5a9fe8;
}

.dir-owner-btns {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

/* About Section */
#about {
  background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(45,122,80,.15), transparent 60%), var(--bg2);
}

.about-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.about-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.p-tags, .pav {
  display: flex;
}

.about-h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--cream);
  margin-bottom: 1.4rem;
}

.admin-section h3, .p-role {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-h1 span {
  color: var(--gold);
  display: block;
}

.about-body {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 480px;
}

.about-body strong, .p-name {
  font-weight: 600;
  color: var(--cream);
}

.profile-card {
  background: linear-gradient(145deg, rgba(45,122,80,.15), rgba(10,15,13,.42));
  border: 1px solid rgba(74,190,128,.22);
  border-radius: 24px;
  padding: 2.2rem;
  position: relative;
}

.lb-close, .pav, .pav img, .pav-dot {
  border-radius: 50%;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g3), transparent);
}

.pav {
  width: 88px;
  height: 88px;
  margin-bottom: 1.3rem;
  background: linear-gradient(135deg, var(--g2), var(--gold));
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  position: relative;
  box-shadow: 0 0 0 4px rgba(74,190,128,.22), 0 0 0 8px rgba(74,190,128,.07);
}

.pav img {
  width: 100%;
  height: 100%;
}

.pav-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #4abe80;
  border: 2.5px solid var(--bg2);
}

.p-name {
  font-size: 1.45rem;
}

.p-role, .ptag {
  font-weight: 500;
}

.p-role {
  color: var(--gold);
  font-size: .78rem;
  margin-top: .2rem;
}

.p-bio, .ptag {
  color: var(--muted);
}

.p-bio {
  margin-top: .9rem;
  font-size: .86rem;
  line-height: 1.72;
}

.p-tags {
  margin-top: 1.1rem;
  flex-wrap: wrap;
  gap: .4rem;
}

.ptag {
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .72rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--gb);
}

.modal-hdr h3, .sbn, .val-title {
  font-weight: 600;
}

.stats-bar, .val {
  background: var(--glass);
}

.vals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.4rem;
}

#admin-panel.open, .admin-hdr, .card-menu-drop.open, .modal-overlay.open, .stats-bar {
  display: flex;
}

.val {
  border-radius: 16px;
  padding: 1.6rem;
  transition: transform .3s, border-color .3s;
}

.val:hover {
  transform: translateY(-4px);
  border-color: rgba(74,190,128,.32);
}

.val-icon {
  font-size: 1.7rem;
  margin-bottom: .7rem;
}

.val-title {
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: .4rem;
}

.val-text {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.65;
}

.stats-bar {
  margin-top: 2.5rem;
  padding: 1.8rem;
  border: 1px solid var(--gb);
  border-radius: 20px;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sbn {
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

.sbl {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .3rem;
}

.sbdiv {
  width: 1px;
  height: 44px;
  background: var(--gb);
}

/* Admin Panel */
#admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}

.admin-hdr {
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--gb);
  flex-shrink: 0;
  gap: .5rem;
  flex-wrap: wrap;
}

.admin-hdr h2 {
  font-size: 1.3rem;
  color: var(--gold);
}

.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.admin-body::-webkit-scrollbar, .admin-list::-webkit-scrollbar {
  width: 4px;
}

.admin-body::-webkit-scrollbar-track, .admin-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 4px;
}

.admin-body::-webkit-scrollbar-thumb, .admin-list::-webkit-scrollbar-thumb {
  background: rgba(232,184,75,.35);
  border-radius: 4px;
}

.admin-section {
  overflow: visible;
  background: var(--glass);
  border: 1px solid var(--gb);
  border-radius: 16px;
  padding: 1rem;
}

#admin-content, .admin-list {
  -webkit-overflow-scrolling: touch;
  display: flex;
}

.admin-section h3 {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .85rem;
}

.admin-list {
  flex-direction: column;
  gap: .5rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: .3rem;
}

.admin-item, .modal-box {
  border: 1px solid var(--gb);
}

.admin-item {
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  padding: .65rem .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .8rem;
  flex-wrap: wrap;
}

.admin-item-name {
  font-weight: 500;
  color: var(--cream);
  overflow: hidden;
}

.admin-item-sub {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .1rem;
}

.ab-approve, .ab-del {
  padding: .35rem .75rem;
  font-size: .71rem;
  font-weight: 500;
  min-height: 34px;
  font-family: var(--font);
  cursor: pointer;
  touch-action: manipulation;
}

.admin-actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ab-approve {
  border-radius: 7px;
  border: 1px solid rgba(74,190,128,.4);
  background: rgba(74,190,128,.1);
  color: var(--g3);
}

.ab-approve:hover {
  background: rgba(74,190,128,.2);
}

.ab-del {
  border-radius: 7px;
  border: 1px solid rgba(232,100,100,.35);
  background: rgba(232,100,100,.08);
  color: var(--rose);
}

.ab-del:hover {
  background: rgba(232,100,100,.18);
}

.admin-login {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 320px;
  margin: 3rem auto;
  padding: 0 1rem;
}

#admin-content {
  flex: 1;
  overflow-y: auto;
  flex-direction: column;
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,15,13,.88);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.iprev, .modal-box {
  position: relative;
}

.modal-box, footer {
  background: var(--bg2);
}

.modal-box {
  border-radius: 22px;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: .35s cubic-bezier(.16,1,.3,1) modalIn;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.modal-box.wide {
  max-width: 800px;
}

.modal-hdr {
  padding: 1.4rem 1.6rem 1rem;
  border-bottom: 1px solid var(--gb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-hdr h3 {
  font-size: 1.4rem;
  color: var(--cream);
}

.modal-close {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--gb);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  flex-shrink: 0;
}

.modal-body {
  padding: 1.4rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.6rem;
  border-top: 1px solid var(--gb);
  display: flex;
  gap: .7rem;
  justify-content: flex-end;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: .4rem;
  letter-spacing: .3px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--gb);
  background: rgba(255,255,255,.05);
  color: var(--cream);
  font-family: var(--font);
  font-size: .88rem;
  outline: 0;
  transition: border-color .25s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(232,184,75,.5);
  box-shadow: 0 0 0 4px rgba(232,184,75,.07);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg2);
  color: var(--cream);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(245,240,232,.32);
}

.img-upload-zone {
  border: 2px dashed var(--gb);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  margin-bottom: .8rem;
}

.img-upload-zone:hover {
  border-color: rgba(232,184,75,.5);
  background: rgba(232,184,75,.04);
}

.iuz-icon {
  font-size: 2rem;
  margin-bottom: .4rem;
}

.iuz-text {
  font-size: .8rem;
  color: var(--muted);
}

.iuz-hint {
  font-size: .7rem;
  color: rgba(245,240,232,.35);
  margin-top: .2rem;
}

.img-previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .8rem;
}

.iprev {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--gb);
}

.iprev img {
  width: 100%;
  height: 100%;
  display: block;
}

.iprev-rm {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0,0,0,.72);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s;
}

.iprev-rm:hover {
  background: rgba(232,100,100,.85);
}

.view-gallery {
  margin-bottom: 1.2rem;
}

.view-price, .view-title {
  font-weight: 600;
  margin-bottom: .4rem;
}

.view-main-img {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: 1px solid var(--gb);
}

.view-thumbs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.view-thumb {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
}

.view-thumb.active {
  border-color: var(--gold);
}

.view-price {
  font-size: 2rem;
  color: var(--gold);
}

.view-title {
  font-size: 1.05rem;
  color: var(--cream);
}

.view-desc, .view-meta-row, .view-seller {
  margin-bottom: .8rem;
}

.view-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
}

.view-meta-item strong, .view-seller-name {
  color: var(--cream);
}

.view-meta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.view-seller {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--gb);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#toast, .view-btns {
  gap: .6rem;
  display: flex;
}

.view-seller-name {
  font-size: .9rem;
  font-weight: 500;
}

.view-seller-phone {
  font-size: .8rem;
  color: var(--gold);
  font-family: monospace;
  margin-top: .2rem;
  direction: ltr;
}

#toast, .ft-logo {
  color: var(--cream);
}

.view-btns {
  flex-wrap: wrap;
}

#lightbox, #toast {
  position: fixed;
  align-items: center;
}

#toast {
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 9900;
  border: 1px solid rgba(74,190,128,.35);
  border-radius: 12px;
  padding: .75rem 1.3rem;
  font-size: .84rem;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  max-width: 90vw;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
}

#toast.err {
  border-color: rgba(232,124,138,.4);
  color: var(--rose);
}

/* Footer Section - Fixed Link Styling & Colors */
footer {
  border-top: 1px solid var(--gb);
  padding: 2.5rem 3rem;
  position: relative;
  background: var(--bg2);
  text-align: center;
}

footer a,
.footer a {
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

footer a:hover,
.footer a:hover {
  color: var(--gold) !important;
}

.ft-logo {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--cream);
}

.admin-link, .cmd-item {
  font-family: var(--font);
}

.ft-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0;
  align-items: center;
  justify-content: center;
}

/* Policy & Footer Links (Privacy Policy, Terms, etc.) */
.ft-link {
  font-size: .85rem;
  padding: .45rem 1.1rem;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--cream) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ft-link:focus, .ft-link:hover {
  background: rgba(232,184,75,.12);
  border-color: rgba(232,184,75,.35);
  color: var(--gold) !important;
  transform: translateY(-2px);
  outline: none;
}

.ft-sub {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .5rem;
}

.ft-sub a {
  color: var(--g3) !important;
  text-underline-offset: 3px;
  text-decoration: underline !important;
}

.ft-sub a:hover {
  color: var(--gold) !important;
}

.admin-link {
  color: rgba(245,240,232,.3) !important;
  font-size: .72rem;
  cursor: pointer;
  background: 0 0;
  border: none;
  margin: 0.5rem auto 0;
  display: block;
  text-decoration: none !important;
}

.admin-link:hover {
  color: var(--gold) !important;
}

/* Footer Buttons Container Fix */
.footer-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 20px auto 10px auto;
  padding: 0 15px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--cream) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
}

.footer-btn:hover {
  background-color: rgba(232, 184, 75, 0.12);
  border-color: rgba(232, 184, 75, 0.35);
  color: var(--gold) !important;
}

.btn-icon {
  font-size: 12px;
}

.copyright-text {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 15px;
}

/* Animations */
.reveal {
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}

.reveal.vis {
  opacity: 1;
  transform: none;
}

@keyframes slideL {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: none; }
}

@keyframes slideR {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

/* Lightbox UI */
#lightbox {
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,.97);
  display: none;
  justify-content: center;
  flex-direction: column;
}

#lightbox.open {
  display: flex;
  animation: .2s lbIn;
}

@keyframes lbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px 80px;
}

.lb-arrow, .lb-close {
  position: fixed;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

#lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity .15s;
  -webkit-user-drag: none;
  display: block;
}

.lb-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  z-index: 5010;
}

.lb-close:hover {
  background: rgba(255,255,255,.28);
}

.lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 1.8rem;
  align-items: center;
  justify-content: center;
  z-index: 5010;
}

.lb-counter, .lb-dots {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5010;
}

.card-menu-btn, .lb-dot {
  transition: .2s;
  cursor: pointer;
}

.lb-arrow:hover {
  background: rgba(232,184,75,.4);
}

#lb-prev { left: .8rem; }
#lb-next { right: .8rem; }

.lb-counter {
  bottom: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  background: rgba(0,0,0,.55);
  padding: .3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}

.lb-dots {
  bottom: 2.8rem;
  display: flex;
  gap: .5rem;
}

.lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}

.lb-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

.card-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.card-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  border: 1px solid var(--gb);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card-menu-btn:hover {
  color: var(--cream);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}

.card-menu-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg2);
  border: 1px solid var(--gb);
  border-radius: 10px;
  min-width: 110px;
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  animation: .18s cubic-bezier(.16,1,.3,1) modalIn;
}

.cmd-item {
  padding: .55rem 1rem;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .15s;
  border: none;
  background: 0 0;
  width: 100%;
  text-align: left;
  color: var(--cream);
}

.cmd-item:hover {
  background: rgba(255,255,255,.06);
}

.cmd-item.danger {
  color: var(--rose);
}

.cmd-item.danger:hover {
  background: rgba(232,100,100,.1);
}

.fb-star {
  color: rgba(245,240,232,.25);
  transition: color .15s, transform .1s;
}

.fb-star:hover {
  transform: scale(1.15);
}

.review-card {
  background: var(--glass);
  border: 1px solid var(--gb);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.review-stars {
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: 1px;
}

.review-comment {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .74rem;
  color: var(--muted);
  border-top: 1px solid var(--gb);
  padding-top: .6rem;
  margin-top: .2rem;
}

.review-name {
  font-weight: 600;
  color: var(--cream);
}

/* Clean & Responsive SEO Text Section */
.about-seo-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: left;
}

.about-seo-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream, #ffffff);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.about-seo-section p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted, #a1a1aa);
  margin-bottom: 12px;
}

.about-seo-section p:last-child {
  margin-bottom: 0;
}

.about-seo-section strong {
  color: var(--cream, #e4e4e7);
  font-weight: 600;
}

.promo-banner-box {
  background: linear-gradient(135deg, rgba(232,184,75,.08), rgba(26,70,46,.2));
  border: 1px solid rgba(232,184,75,.2);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.promo-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: .2rem;
}

.promo-desc {
  font-size: .82rem;
  color: var(--muted);
}

.btn-whatsapp-promo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  background: linear-gradient(135deg, var(--gold), #c9962e);
  color: #0a0f0d;
  border-radius: 10px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Media Queries */
@media(max-width: 1100px) {
  nav { padding: .9rem 2rem; }
  nav.scrolled { padding: .7rem 2rem; }
  .hero { padding: 6.5rem 2rem 4rem; }
  #about, #directory, #market, .home-sec { padding-left: 2rem; padding-right: 2rem; }
  footer { padding: 2rem; }
}

@media(max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .ads-grid, .vals { grid-template-columns: repeat(2, 1fr); }
  .about-top, .admin-body, .dir-grid { grid-template-columns: 1fr; }
  .about-top { gap: 2.5rem; }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  #reviews-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media(max-width: 768px) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .about-seo-section { margin: 24px 16px; padding: 20px 18px; }
  .about-seo-section h2 { font-size: 1.2rem; }
  .about-seo-section p { font-size: 0.88rem; }
}

@media(max-width: 640px) {
  #admin-content, .admin-body { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .ad-card, .dnum, .hero-p, .hero-search { max-width: 100%; }
  #admin-panel { height: 100svh; height: 100dvh; }
  #admin-content { flex: 1; }
  .admin-body { grid-template-columns: 1fr !important; }
  .ads-grid, .dir-grid, .form-row, .hero, .vals { grid-template-columns: 1fr; }
  nav { padding: .75rem 1rem; gap: .5rem; }
  nav.scrolled { padding: .65rem 1rem; }
  .logo { font-size: 1.05rem; }
  .lang-toggle, .nav-center { display: none !important; }
  .menu-btn { display: flex !important; }
  .hero { padding: 5rem 1rem 2rem; gap: 1.5rem; min-height: auto; }
  .h1 { font-size: clamp(2.2rem, 7.5vw, 3rem); letter-spacing: -1px; }
  .trust-strip { padding: .6rem 1rem; gap: 1rem; }
  .home-sec { padding: 2rem 1rem 3rem; }
  #about, #directory, #market { padding: 5rem 1rem 3rem; }
  .ads-grid { gap: .8rem; }
  .ad-img-wrap, .ad-no-img, .ad-slider { height: 185px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr) !important; }
  .modal-box { max-height: 95vh; }
  .mkt-head { flex-direction: column; align-items: flex-start; }
  .img-previews { grid-template-columns: repeat(3, 1fr); }
  .hstats { gap: 1.2rem; }
  .hstat-n { font-size: 1.6rem; }
  .about-h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .fab-post { bottom: 1rem; right: 1rem; padding: .7rem 1.3rem; font-size: .82rem; }
  .drow { flex-wrap: wrap; gap: .5rem; }
  .dnum { font-size: .71rem; word-break: break-all; white-space: normal; }
  .dinfo { min-width: 0; }
  .ad-card { width: 100%; }
  .hero-right { display: none; }
  .lb-img-wrap { padding: 54px 50px 70px; }
  .lb-arrow { width: 42px; height: 42px; font-size: 1.4rem; }
  #lb-prev { left: .3rem; }
  #lb-next { right: .3rem; }
  #reviews-grid { grid-template-columns: 1fr !important; }
  #reviews-summary { flex-direction: column; align-items: flex-start !important; text-align: left; }

  /* Footer: keep legal links as clearly separated pill buttons on small screens */
  footer { padding: 2rem 1.1rem; }
  footer div[style*="font-size:.72rem"] { max-width: 320px; margin-left: auto !important; margin-right: auto !important; line-height: 1.6; }
  .footer-buttons-container { gap: 8px; margin: 16px auto 6px; }
  .footer-btn { font-size: 12px; padding: 7px 12px; }
  .copyright-text { margin-top: 12px; font-size: 12px; }
}

@media(max-width: 400px) {
  .ads-grid { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .dnum { font-size: .68rem; }
}