/* LovePath - style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --red:      #c0132a;
  --red-dk:   #8b0a1c;
  --red-lt:   #fce8eb;
  --pink:     #e75480;
  --pink-lt:  #fdf0f4;
  --gold:     #e8a020;
  --gold-lt:  #fff8e6;
  --gold-dk:  #7a4800;
  --white:    #ffffff;
  --cream:    #fff8f8;
  --border:   #f5c6cb;
  --text:     #2d1a1a;
  --muted:    #7a5a5a;
  --radius:   10px;
  --shadow:   0 2px 16px rgba(192,19,42,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ========= NAVBAR ========= */
.navbar {
  background: var(--red);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-logo-text { color: var(--white); }
.nav-logo-text strong { font-family: 'Playfair Display', serif; font-size: 20px; display: block; line-height: 1; }
.nav-logo-text small { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; }

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

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .2s;
  text-decoration: none;
}
.nav-link:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(255,255,255,0.2); color: #fff; }

.btn-nav-gold {
  background: var(--gold);
  color: var(--gold-dk) !important;
  font-weight: 700 !important;
  border-radius: 6px;
  padding: 7px 16px !important;
}
.btn-nav-gold:hover { background: #f5b02e; text-decoration: none; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; display: block; transition: .3s; }

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

@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--red-dk);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 4px;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 10px 14px; }
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:hover { text-decoration: none; }

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

.btn-gold  { background: var(--gold); color: var(--gold-dk); }
.btn-gold:hover { background: #f5b02e; }

.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--red-lt); }

.btn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-outline:hover { background: var(--red-lt); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ========= HERO ========= */
.hero {
  background: var(--red);
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  border-radius: 60% 60% 0 0 / 100% 100% 0 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ========= STATS BAR ========= */
.stats-bar {
  background: var(--gold);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  padding: 16px 32px;
  text-align: center;
  border-right: 1px solid rgba(192,19,42,0.15);
}
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--red); display: block; line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--gold-dk); text-transform: uppercase; letter-spacing: 1.2px; }

/* ========= SECTIONS ========= */
.section { padding: 60px 20px; }
.section-sm { padding: 40px 20px; }

.container { max-width: 1000px; margin: 0 auto; }
.container-sm { max-width: 640px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-family: 'Playfair Display', serif; font-size: clamp(22px, 3vw, 34px); color: var(--red); margin-bottom: 8px; }
.section-title p { color: var(--muted); font-size: 15px; }

/* ========= STEPS ========= */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow .2s;
}
.step-card:hover { box-shadow: var(--shadow); }
.step-num {
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-family: 'Playfair Display', serif;
}
.step-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.step-card h3 { color: var(--red); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ========= FEATURES ========= */
.bg-pink-lt { background: var(--pink-lt); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.feature-icon {
  width: 42px; height: 42px;
  background: var(--red-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--red);
}
.feature-card h4 { color: var(--red); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ========= CHAT PREVIEW ========= */
.chat-mock {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.chat-mock-top {
  background: var(--red);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-mock-top span { color: #fff; font-weight: 700; font-size: 15px; }
.chat-mock-top small { color: rgba(255,255,255,0.6); font-size: 12px; margin-left: auto; }
.online-dot { width: 9px; height: 9px; background: #4ade80; border-radius: 50%; }
.chat-mock-body { display: flex; height: 260px; }
.chat-users-list {
  width: 120px;
  border-right: 1px solid var(--border);
  padding: 10px;
  overflow-y: auto;
  flex-shrink: 0;
}
.chat-users-list-title { font-size: 10px; color: var(--red); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.cu-item { display: flex; align-items: center; gap: 7px; padding: 5px 0; }
.cu-av { width: 26px; height: 26px; border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cu-name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.chat-msgs-area { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg-row { display: flex; gap: 8px; align-items: flex-start; }
.msg-av { width: 28px; height: 28px; border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-content {}
.msg-name { font-size: 10px; color: var(--red); font-weight: 700; margin-bottom: 2px; }
.msg-bubble { background: var(--red-lt); border: 1px solid var(--border); border-radius: 4px 12px 12px 12px; padding: 6px 10px; font-size: 13px; color: var(--text); max-width: 240px; }
.msg-row.me { flex-direction: row-reverse; }
.msg-row.me .msg-bubble { background: var(--red); color: #fff; border-color: var(--red); border-radius: 12px 4px 12px 12px; }
.chat-mock-input { border-top: 1px solid var(--border); padding: 10px 14px; display: flex; gap: 8px; align-items: center; }
.chat-emoticons { display: flex; gap: 4px; }
.chat-emoticons span { font-size: 18px; cursor: pointer; }
.chat-fake-input { flex: 1; background: var(--cream); border: 1px solid var(--border); border-radius: 20px; height: 34px; padding: 0 14px; font-size: 13px; color: #bbb; display: flex; align-items: center; }
.send-btn-fake { width: 34px; height: 34px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }

/* ========= AUTH PAGES ========= */
.auth-page { background: var(--red-lt); min-height: 100vh; }
.auth-container { display: flex; align-items: center; justify-content: center; padding: 40px 16px; min-height: calc(100vh - 56px); }
.auth-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo { font-size: 44px; text-align: center; margin-bottom: 10px; }
.auth-box h1 { font-family: 'Playfair Display', serif; color: var(--red); font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form label { display: block; font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  transition: border-color .2s;
  outline: none;
}
.auth-form input:focus { border-color: var(--red); background: #fff; }
.auth-link { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-link a { color: var(--red); font-weight: 700; }

/* ========= ALERTS ========= */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #ffe0e3; color: #8b0a1c; border: 1px solid #f5c6cb; }
.alert-success { background: #e6f9f0; color: #1a6640; border: 1px solid #9fe1cb; }

/* ========= CHAT PAGE ========= */
.chat-page { height: calc(100vh - 56px); display: flex; flex-direction: column; overflow: hidden; }

.chat-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* sidebar users */
.chat-sidebar {
  width: 200px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-sidebar-header {
  background: var(--red);
  color: #fff;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.chat-sidebar-list { flex: 1; overflow-y: auto; padding: 8px; }
.online-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.online-user:hover { background: var(--red-lt); }
.online-user .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: transform .2s;
  cursor: pointer;
}
.online-user:hover .av { transform: scale(1.8); z-index: 10; }
.online-user .uname { font-size: 13px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-user .udot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.online-user .admin-badge { font-size: 10px; background: var(--gold); color: var(--gold-dk); padding: 1px 5px; border-radius: 4px; font-weight: 700; margin-left: auto; }

/* chat main area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg .av {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform .2s;
}
.chat-msg .av:hover { transform: scale(2.2); z-index: 10; }
.msg-meta { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; }
.msg-uname { font-size: 13px; font-weight: 700; color: var(--red); cursor: pointer; }
.msg-uname:hover { text-decoration: underline; }
.msg-uname.is-admin { color: var(--gold-dk); }
.msg-time { font-size: 11px; color: #bbb; }
.msg-text {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px 12px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 600px;
  word-break: break-word;
}
.msg-text img.chat-img { max-width: 280px; max-height: 240px; border-radius: 8px; display: block; margin-top: 8px; cursor: zoom-in; border: 1px solid var(--border); object-fit: contain; background: #f9f9f9; }
.chat-msg.own .msg-text img.chat-img { border-color: rgba(255,255,255,0.3); }
.chat-msg.own { flex-direction: row-reverse; }
.chat-msg.own .msg-text { background: var(--red); color: #fff; border-color: var(--red); border-radius: 12px 4px 12px 12px; }
.chat-msg.own .msg-uname { color: var(--red-dk); }
.chat-msg.own .msg-meta { flex-direction: row-reverse; }
.msg-system { text-align: center; font-size: 12px; color: #bbb; font-style: italic; }

/* chat input bar */
.chat-input-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.emoji-bar { display: flex; gap: 4px; flex-wrap: wrap; }
.emoji-btn { font-size: 20px; cursor: pointer; border: none; background: none; padding: 2px; border-radius: 4px; transition: transform .15s; }
.emoji-btn:hover { transform: scale(1.3); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: var(--cream);
  transition: border-color .2s;
}
.chat-input-row input:focus { border-color: var(--red); background: #fff; }
.chat-send-btn {
  width: 40px; height: 40px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.chat-send-btn:hover { background: var(--red-dk); }
.banned-notice { background: #ffe0e3; color: #8b0a1c; padding: 10px 16px; font-size: 13px; border-radius: 8px; text-align: center; }

/* ========= PRIVATE MESSAGE WINDOW ========= */
.pm-window {
  position: fixed;
  bottom: 0; right: 20px;
  width: 300px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(192,19,42,0.12);
  display: flex;
  flex-direction: column;
  z-index: 500;
  overflow: hidden;
}
.pm-header {
  background: var(--red);
  color: #fff;
  padding: 9px 12px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.pm-header span { font-size: 14px; font-weight: 700; flex: 1; }
.pm-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 0; line-height: 1; }
.pm-messages { height: 200px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pm-msg { font-size: 13px; }
.pm-msg .pm-from { font-weight: 700; color: var(--red); font-size: 12px; }
.pm-msg .pm-text { background: var(--red-lt); border-radius: 4px 10px 10px 10px; padding: 5px 9px; margin-top: 2px; display: inline-block; max-width: 100%; word-break: break-word; }
.pm-msg.own .pm-text { background: var(--red); color: #fff; border-radius: 10px 4px 10px 10px; }
.pm-msg.own { text-align: right; }
.pm-input-row { border-top: 1px solid var(--border); padding: 8px; display: flex; gap: 6px; flex-shrink: 0; }
.pm-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 16px; height: 32px; padding: 0 12px; font-size: 13px; outline: none; background: var(--cream); }
.pm-input-row button { background: var(--red); color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ========= PROFILE PAGE ========= */
.profile-wrap {
  max-width: 560px;
  margin: 40px auto;
  padding: 0 16px;
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-header {
  background: var(--red);
  padding: 30px 20px;
  text-align: center;
}
.profile-header img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.profile-header h2 { color: #fff; font-family: 'Playfair Display', serif; font-size: 22px; }
.profile-header p { color: rgba(255,255,255,0.7); font-size: 13px; }
.profile-body { padding: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=file] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--red); background: #fff; }
.form-group input[type=file] { height: auto; padding: 8px 14px; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ========= ADMIN ========= */
.admin-page { min-height: 100vh; background: #f7f0f0; }
.admin-nav {
  background: var(--red-dk);
  padding: 0 20px;
  height: 52px;
  display: flex; align-items: center; gap: 20px;
}
.admin-nav a { color: rgba(255,255,255,0.8); font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 6px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.admin-logo { color: #fff; font-family: 'Playfair Display', serif; font-size: 18px; margin-right: 16px; }
.admin-content { max-width: 1100px; margin: 30px auto; padding: 0 16px; }
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.admin-card-header { background: var(--red); color: #fff; padding: 12px 20px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--red-lt); color: var(--red); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--red-lt); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fff8f8; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-red { background: var(--red-lt); color: var(--red); }
.badge-gold { background: var(--gold-lt); color: var(--gold-dk); }
.badge-green { background: #e6f9f0; color: #1a6640; }
.badge-gray { background: #f1f1f1; color: #666; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.admin-stat-card .num { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--red); display: block; }
.admin-stat-card .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ========= BANER / FOOTER ========= */
.baner {
  background: var(--gold);
  padding: 50px 20px;
  text-align: center;
}
.baner h2 { font-family: 'Playfair Display', serif; color: var(--red); font-size: clamp(22px, 3vw, 34px); margin-bottom: 10px; }
.baner p { color: var(--gold-dk); font-size: 15px; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tag { background: var(--white); color: var(--red); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 500; }

.footer {
  background: var(--red);
  padding: 30px 20px;
  text-align: center;
}
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer p { color: rgba(255,255,255,0.5); font-size: 12px; }
.footer .footer-seo { margin-top: 8px; font-size: 11px; }

/* ========= IMAGE LIGHTBOX ========= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ===== ADMIN TAG ===== */
.admin-tag {
  font-size: 10px; background: #ffd166; color: #7a4800;
  padding: 1px 6px; border-radius: 4px; font-weight: 700;
  margin-left: 4px; vertical-align: middle;
}

/* ===== SIDEBAR – mobile: 5px pasek, klik wysuwa ===== */
/* Desktop: zawsze widoczny normalnie */
.chat-sidebar {
  width: 200px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: width .28s cubic-bezier(.4,0,.2,1);
}

/* Overlay za sidebarem */
.sidebar-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 98;
  cursor: pointer;
}
.sidebar-overlay.visible { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  /* chat-layout musi mieć relative żeby overlay działał */
  .chat-layout { position: relative; overflow: hidden; }

  /* Sidebar schowany – tylko 5px paska widoczne */
  .chat-sidebar {
    position: absolute;
    left: 0; top: 0; height: 100%;
    z-index: 100;
    width: 5px !important;          /* Pasek 5px */
    min-width: 5px;
    cursor: pointer;
    background: var(--red);          /* Czerwony pasek dobrze widoczny */
    border-right: none;
    overflow: hidden;
    transition: width .28s cubic-bezier(.4,0,.2,1);
  }

  /* Gdy otwarty – pełna szerokość */
  .chat-sidebar.open {
    width: 220px !important;
    background: var(--white);
    cursor: default;
    overflow: hidden;
    border-right: 1px solid var(--border);
  }

  /* Header i lista niewidoczne gdy pasek 5px */
  .chat-sidebar:not(.open) .chat-sidebar-header,
  .chat-sidebar:not(.open) .chat-sidebar-list {
    opacity: 0;
    pointer-events: none;
  }
  .chat-sidebar.open .chat-sidebar-header,
  .chat-sidebar.open .chat-sidebar-list {
    opacity: 1;
    transition: opacity .15s .1s;
  }

  .stat { padding: 12px 16px; }
  .auth-box { padding: 28px 20px; }
  .profile-body { padding: 20px 16px; }
  .pm-window { right: 0 !important; left: 0; width: 100% !important; border-radius: 12px 12px 0 0; }
  .admin-content { padding: 0 8px; }
}

@media (max-width: 400px) {
  .hero { padding: 40px 14px 60px; }
  .navbar { padding: 0 12px; }
  .section { padding: 36px 12px; }
  .stats-bar { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid rgba(192,19,42,0.15); }
  .emoji-btn { font-size: 16px; }
  .emoji-bar { gap: 1px; }
}

/* ===== Link Preview Card ===== */
.link-preview-slot { margin-top: 6px; }

.link-preview-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  max-width: 420px;
  margin-top: 6px;
  border: 1.5px solid var(--border, #f0d5d8);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--cream, #fff8f8);
  transition: box-shadow .15s;
}
.link-preview-card:hover { box-shadow: 0 4px 16px rgba(192,19,42,.12); }

.link-preview-card img {
  width: 96px;
  min-width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}

.link-preview-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px 10px 0;
  overflow: hidden;
}

.link-preview-site {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--red, #c0132a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.link-preview-desc {
  font-size: 11px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Gdy brak obrazka – poszerzamy info */
.link-preview-card:not(:has(img)) .link-preview-info,
.link-preview-card img[style*="display:none"] ~ .link-preview-info {
  padding-left: 12px;
}

@media (max-width: 480px) {
  .link-preview-card { max-width: 100%; }
  .link-preview-card img { width: 72px; min-width: 72px; height: 72px; }
}
