
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #9A7835;
  --gold-pale: #FAF3E0;
  --dark: #111111;
  --mid: #444444;
  --muted: #888888;
  --border: #E8E0D0;
  --white: #FFFFFF;
  --cream: #FDFAF5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--white); color: var(--dark); line-height: 1.6; }
[dir="rtl"] * { font-family: 'Noto Sans Arabic', sans-serif; }
[dir="rtl"] .fa, [dir="rtl"] .fas, [dir="rtl"] .far, [dir="rtl"] .fab,
[dir="rtl"] .fal, [dir="rtl"] .fad, [dir="rtl"] [class*=" fa-"],
[dir="rtl"] [class^="fa-"] { font-family: "Font Awesome 6 Free" !important; }
[dir="rtl"] .fab, [dir="rtl"] [class*="fa-brands"] { font-family: "Font Awesome 6 Brands" !important; }
[dir="rtl"] .logo { font-family: 'Cinzel', serif !important; }
[dir="rtl"] .logo-krd { font-family: 'Montserrat', sans-serif !important; }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-actions { flex-direction: row-reverse; }
[dir="rtl"] .hero-card-badge { left: auto; right: 16px; }
[dir="rtl"] .lightbox-inner { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
a { color: inherit; text-decoration: none; }
:where(a):hover { color: var(--gold); }
::selection { background: rgba(201,168,76,0.35); color: var(--dark); }
::-moz-selection { background: rgba(201,168,76,0.35); color: var(--dark); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* Suppress browsers' built-in password reveal/clear icons (e.g. Edge) so only
   our own custom eye-toggle button shows on password fields. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem; font-weight: 700;
  text-decoration: none; letter-spacing: 0.02em;
  color: var(--dark);
}
.logo .logo-krd {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  vertical-align: baseline;
}
.logo sup {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem; color: var(--gold);
  letter-spacing: 0.08em; vertical-align: super; margin-left: 2px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  color: var(--mid); letter-spacing: 0.03em; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-picker { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: none; border: none;
  font-size: 0.85rem; font-weight: 500; color: var(--mid);
  cursor: pointer; transition: color 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}
.lang-trigger:hover { color: var(--gold-dark); }
.lang-trigger i.fa-globe { font-size: 0.9rem; }
.lang-trigger .lang-chev { font-size: 0.65rem; }
.lang-drop {
  display: none;
  position: absolute; top: 100%; right: 0;
  padding-top: 8px;
  width: 160px;
  z-index: 200;
}
.lang-picker:hover .lang-drop { display: block; }
.lang-drop-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 8px 0;
  overflow: hidden;
}
.lang-opt {
  display: block;
  padding: 9px 16px;
  font-size: 0.84rem; font-weight: 500; color: var(--mid);
  transition: background 0.1s, color 0.1s;
  text-decoration: none;
}
.lang-opt:hover { background: var(--cream); color: var(--gold-dark); }
.lang-opt.active { background: var(--gold-pale); color: var(--gold-dark); font-weight: 700; }
.btn-ghost {
  padding: 8px 20px; background: transparent;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--dark);
  cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
  padding: 8px 20px; background: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 8px;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
/* ── Profile Avatar Dropdown ─────────────────────────────────────── */
.nav-profile-wrap { position: relative; }
.nav-avatar-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px;
  border-radius: 100px; transition: background 0.15s;
}
.nav-avatar-btn:hover { background: var(--cream); }
.nav-avatar-img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
}
.nav-avatar-initials {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.nav-avatar-chev { font-size: 0.6rem; color: var(--muted); transition: transform 0.2s; }
.nav-profile-menu.open ~ button .nav-avatar-chev,
.nav-avatar-btn[aria-expanded="true"] .nav-avatar-chev { transform: rotate(180deg); }
.nav-profile-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 220px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 500; overflow: hidden; padding: 8px 0;
}
.nav-profile-menu.open { display: block; }
.npm-header { padding: 14px 16px 10px; }
.npm-name { font-size: 0.88rem; font-weight: 700; color: var(--dark); }
.npm-uname { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.npm-divider { height: 1px; background: var(--border); margin: 4px 0; }
.npm-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 0.84rem; font-weight: 500;
  color: var(--dark); text-decoration: none; transition: background 0.1s;
}
.npm-item i { width: 14px; text-align: center; font-size: 0.78rem; color: var(--muted); }
.npm-item:hover { background: var(--cream); color: var(--gold-dark); }
.npm-item:hover i { color: var(--gold); }
.npm-item-danger { color: #c53030; }
.npm-item-danger i { color: #c53030; }
.npm-item-danger:hover { background: #fff5f5; color: #c53030; }

/* ── Notification Bell ────────────────────────────────────────────── */
.nav-notif-wrap { position: relative; }
.nav-notif-btn {
  position: relative; background: none; border: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; transition: background 0.15s;
  color: var(--mid); font-size: 1rem;
}
.nav-notif-btn:hover { background: var(--cream); color: var(--dark); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #e53e3e; color: #fff;
  font-size: 0.6rem; font-weight: 800;
  border-radius: 100px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.nav-notif-panel {
  display: none; position: fixed;
  width: 320px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 500; overflow: hidden;
}
.nav-notif-panel.open { display: block; }
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 700; color: var(--dark);
}
.notif-mark-all {
  background: none; border: none; cursor: pointer;
  font-size: 0.73rem; color: var(--gold-dark); font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.notif-mark-all:hover { text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 0.82rem; color: var(--muted); }
.notif-item {
  display: flex; gap: 10px; padding: 12px 16px;
  cursor: pointer; transition: background 0.1s; position: relative;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--cream); }
.notif-item.unread { background: rgba(201,168,76,0.06); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 5px;
  opacity: 0;
}
.notif-item.unread .notif-dot { opacity: 1; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 0.82rem; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.notif-msg { font-size: 0.75rem; color: var(--muted); line-height: 1.5; margin-bottom: 4px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-time { font-size: 0.68rem; color: var(--muted); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-right { display: none; }

.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--white); z-index: 999;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 72px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mobile-menu-head .logo { font-size: 1.2rem; }
.mobile-menu-close {
  width: 36px; height: 36px; border-radius: 8px; background: var(--cream);
  border: 1px solid var(--border); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 0.85rem; color: var(--muted);
}
.mobile-menu-close:hover { background: var(--border); color: var(--dark); }
.mobile-menu-body { flex: 1; overflow-y: auto; padding: 8px 0 24px; scrollbar-width: thin; }
.mm-group { padding: 0 24px; }
.mm-group-title {
  font-size: 0.6rem; font-weight: 800; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; padding: 16px 0 6px; display: block;
}
.mm-group a {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  font-size: 0.88rem; font-weight: 500; color: var(--dark); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mm-group a:last-child { border-bottom: none; }
.mm-group a i { width: 16px; text-align: center; font-size: 0.72rem; color: var(--gold); opacity: 0.65; }
.mm-group a:hover { color: var(--gold); }
.mm-group a:hover i { opacity: 1; }
.mm-group a.active { color: var(--gold); font-weight: 700; }
.mobile-menu-foot {
  padding: 16px 24px 24px; border-top: 1px solid var(--border); flex-shrink: 0;
  display: flex; flex-direction: column; gap: 0;
}
.mm-user-row { display: flex; align-items: center; gap: 12px; padding: 12px 0 14px; }
.mm-user-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--gold); }
.mm-user-avatar-init { width: 42px; height: 42px; border-radius: 50%; background: var(--dark); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; border: 2px solid var(--gold); flex-shrink: 0; }
.mm-user-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.mm-user-handle { font-size: 0.75rem; color: var(--muted); }
.mm-action-links { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.mm-action-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--dark); text-decoration: none; transition: background 0.15s; }
.mm-action-link i { width: 16px; text-align: center; font-size: 0.82rem; color: var(--muted); }
.mm-action-link:hover { background: var(--cream); color: var(--gold); }
.mm-action-link:hover i { color: var(--gold); }
.mm-action-link.danger { color: #dc2626; }
.mm-action-link.danger i { color: #dc2626; }
.mm-action-link.danger:hover { background: #fef2f2; }
.mm-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.mm-auth-row { display: flex; gap: 10px; margin-top: 6px; }
.mm-auth-row a { flex: 1; text-align: center; }
.mm-lang-row { display: flex; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.mm-lang-opt { flex: 1; text-align: center; padding: 9px 4px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 0.84rem; font-weight: 700; color: var(--dark); text-decoration: none; transition: all 0.15s; }
.mm-lang-opt:hover { border-color: var(--gold); color: var(--gold); }
.mm-lang-opt.active { background: var(--dark); border-color: var(--dark); color: var(--gold); }

footer { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.06); padding: 72px 0 32px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo { color: #fff; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin: 16px 0 24px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.9rem; transition: all 0.2s;
}
.footer-social:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--gold); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: 20px; padding: 48px 40px;
  width: 100%; max-width: 440px; position: relative;
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--cream);
  border: none; border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; font-size: 0.9rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--dark); }
.modal h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.modal > p { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 12px 16px; background: var(--cream);
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark); transition: border-color 0.2s; outline: none;
}
.form-group input:focus { border-color: var(--gold); background: #fff; }
.btn-primary-full {
  width: 100%; padding: 13px; background: var(--dark); color: #fff;
  border: none; border-radius: 10px; font-size: 0.95rem; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer; margin-top: 8px; transition: all 0.2s;
}
.btn-primary-full:hover { background: var(--gold); transform: translateY(-1px); }

.attr-figure { margin: 0; position: relative; }
.img-attribution {
  font-size: 0.68rem; color: var(--muted); line-height: 1.4;
  padding: 6px 10px; background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--border);
  font-style: italic;
}
.img-attribution a { color: var(--gold-dark); text-decoration: none; }
.img-attribution a:hover { text-decoration: underline; }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-dropdown > a .dd-arrow { font-size: 0.55rem; transition: transform 0.2s; opacity: 0.6; }
.nav-dropdown:hover > a .dd-arrow,
.nav-dropdown.open > a .dd-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown.in-discover > a { color: var(--gold); }
.nav-mega {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12); padding: 28px 32px;
  min-width: 680px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
  transform: translateX(-50%) translateY(6px); z-index: 200;
}
.nav-mega::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--border);
  border-top: 1px solid var(--border); rotate: 45deg;
}
.nav-dropdown:hover .nav-mega,
.nav-dropdown.open .nav-mega { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.mega-col h5 {
  font-size: 0.62rem; font-weight: 800; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.mega-link {
  display: flex; align-items: center; gap: 8px; padding: 7px 0;
  font-size: 0.82rem; font-weight: 500; color: var(--mid); text-decoration: none;
  transition: color 0.15s; border-bottom: none;
}
.mega-link i { width: 14px; text-align: center; font-size: 0.72rem; color: var(--gold); opacity: 0.7; }
.mega-link:hover { color: var(--gold); }
.mega-link:hover i { opacity: 1; }
.mega-link.active { color: var(--gold); font-weight: 700; }
.mega-link.active i { opacity: 1; }

.mm-group { margin-bottom: 6px; }
.mm-group-title {
  font-size: 0.62rem; font-weight: 800; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; padding: 12px 0 6px; border-top: 1px solid var(--border);
  display: block;
}
.mm-group:first-child .mm-group-title { border-top: none; }
.mm-group a { padding: 9px 0 9px 12px; font-size: 0.9rem; font-weight: 500; border-bottom: none !important; }
.mm-group a:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  nav .nav-links { display: none; }
  nav .nav-actions { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-mobile-right { display: flex; align-items: center; gap: 4px; }
  .nav-notif-panel { left: 12px !important; right: 12px !important; width: auto; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal { padding: 36px 24px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  display: flex; flex-direction: row;
  max-width: min(1160px, 94vw); max-height: 92vh;
  background: #111; border-radius: 16px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.lb-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative;
}
.lb-main img {
  flex: 1; width: 100%; min-height: 0; display: block;
  object-fit: contain; background: #000;
  max-height: calc(92vh - 72px);
}
.lightbox-caption {
  padding: 14px 20px; background: #111;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.6;
  overflow-wrap: anywhere; word-break: break-word;
}
.lightbox-caption strong { color: #fff; font-size: 0.95rem; display: block; margin-bottom: 3px; overflow-wrap: anywhere; word-break: break-word; }
.lightbox-caption a { color: rgba(201,168,76,0.7); text-decoration: none; }
.lightbox-caption a:hover { color: rgba(201,168,76,1); }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,0.55); border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lb-community {
  width: 240px; flex-shrink: 0;
  background: #161616; border-left: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; overflow: hidden;
}
.lb-comm-header {
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0;
}
.lb-comm-title {
  font-size: 0.63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.7);
}
.lb-add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.67rem; font-weight: 700; color: #C9A84C;
  text-decoration: none; padding: 4px 10px;
  background: rgba(201,168,76,0.12); border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.25); white-space: nowrap;
  transition: background 0.15s;
}
.lb-add-btn:hover { background: rgba(201,168,76,0.22); }
.lb-comm-scroll {
  flex: 1; overflow-y: auto; padding: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.lb-comm-scroll::-webkit-scrollbar { width: 4px; }
.lb-comm-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.lb-comm-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.lb-comm-photo {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: #2a2a2a; position: relative;
}
.lb-comm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.22s; }
.lb-comm-photo:hover img { transform: scale(1.07); }
.lb-comm-photo-label {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  transition: background 0.2s; display: flex; align-items: flex-end; padding: 5px;
}
.lb-comm-photo:hover .lb-comm-photo-label { background: rgba(0,0,0,0.5); }
.lb-comm-photo-label span {
  font-size: 0.6rem; color: #fff; opacity: 0;
  transition: opacity 0.2s; line-height: 1.2; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  overflow-wrap: anywhere; word-break: break-word;
}
.lb-comm-photo:hover .lb-comm-photo-label span { opacity: 1; }
.lb-comm-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px; text-align: center; gap: 10px;
}
.lb-comm-empty i { font-size: 2rem; color: rgba(255,255,255,0.3); }
.lb-comm-empty p { font-size: 0.78rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.lb-comm-loading { display: flex; align-items: center; justify-content: center; padding: 32px; }
.lb-comm-loading i { font-size: 1.4rem; color: rgba(255,255,255,0.5); }
@keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fa-spin { animation: fa-spin 1s linear infinite; }
@media (max-width: 700px) {
  .lb-community { display: none; }
  .lb-main img { max-height: calc(92vh - 64px); }
}

.ai-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(180,140,255,0.4);
  color: rgba(200,170,255,0.9); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
