/* =====================================================
   style.css — adoo.lk
   Sri Lanka's one and only social network 🇱🇰
   Aesthetic: bold tropical · lion gold · jungle green
   ===================================================== */

/* ── Custom Properties ── */
:root {
  --cream:      #fdfaf4;
  --warm-white: #fffdf7;
  --ink:        #16120a;
  --ink-light:  #4a4030;
  --ink-faint:  #9a8e7a;
  --amber:      #c8860a;        /* Lion gold / saffron */
  --amber-soft: #e0a83a;
  --amber-pale: #fef3d0;
  --accent:     #1e7d4a;        /* Sri Lanka jungle green */
  --accent-pale:#e6f5ed;
  --border:     #e6dcc8;
  --card-bg:    #ffffff;
  --shadow:     0 2px 20px rgba(22,18,10,0.07);
  --shadow-hover: 0 8px 40px rgba(22,18,10,0.14);
  --radius:     14px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Navbar ── */
.mur-nav {
  background: rgba(250, 247, 242, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: none !important;
}

.mur-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.5rem 0.75rem;
}

.logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  background: linear-gradient(135deg, var(--accent), #155c36);
  border-radius: 8px;
  text-align: center;
  line-height: 2.4rem;
  margin-right: 0.35rem;
  box-shadow: 0 2px 8px rgba(30,125,74,0.35);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-text em {
  color: var(--accent);
  font-style: normal;
}

.mur-back-link {
  font-size: 0.88rem;
  color: var(--ink-light);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.mur-back-link:hover { color: var(--amber); }

.mur-live-tag {
  background: var(--accent-pale) !important;
  color: var(--accent) !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid rgba(30,125,74,0.25);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Hero ── */
.mur-hero {
  padding: 6rem 1.5rem 2.5rem;
  text-align: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.mur-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(30,125,74,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(200,134,10,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.mur-hero-sub {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.mur-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0;
}

.mur-hero-title em {
  font-style: italic;
  color: var(--amber);
}

/* ── Compose Section ── */
.mur-compose-section {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.mur-compose-card,
.mur-reply-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.mur-compose-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.mur-input.input,
.mur-textarea.textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  box-shadow: none !important;
  transition: border-color 0.2s;
  padding: 0.7rem 1rem;
}

.mur-input.input:focus,
.mur-textarea.textarea:focus {
  border-color: var(--amber) !important;
  outline: none;
  background: #fff;
}

.mur-input.input::placeholder,
.mur-textarea.textarea::placeholder {
  color: var(--ink-faint);
}

.mur-post-btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--amber) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0 1.8rem !important;
  height: 2.6rem !important;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(212,117,42,0.3);
}

.mur-post-btn:hover {
  background: #c0651f !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212,117,42,0.4);
}
.mur-post-btn:active {
  transform: translateY(0);
}

/* ── Feed Section ── */
.mur-feed-section {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

/* ── Post Card ── */
.mur-post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s;
  animation: slideUp 0.35s ease both;
}

.mur-post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.mur-post-featured {
  border-top: 3px solid var(--amber);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mur-post-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

/* ── Avatar ── */
.mur-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-pale), var(--amber-soft));
  color: var(--amber);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(212,117,42,0.2);
}

.mur-avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
}

.mur-avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.mur-author {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
}

.mur-time {
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: block;
  margin-top: 0.05rem;
}

.mur-post-body {
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.mur-post-body-lg {
  font-size: 1.1rem;
  line-height: 1.7;
}

.mur-post-body p { margin: 0; }

.mur-post-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: 0.2rem;
}

/* ── Like / Comment Buttons ── */
.mur-btn-like,
.mur-btn-comment {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}

.mur-btn-like:hover {
  color: #e05252;
  background: #fef1f1;
}

.mur-btn-like:hover .like-heart {
  transform: scale(1.3);
}

.like-heart {
  display: inline-block;
  transition: transform 0.2s;
  color: #e05252;
  opacity: 0.7;
}

.mur-btn-like:hover .like-heart { opacity: 1; }

.mur-btn-comment:hover {
  color: var(--amber);
  background: var(--amber-pale);
}

/* ── Comments Section ── */
.mur-comments-section {
  margin-bottom: 2rem;
}

.mur-comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.mur-empty-comments {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.mur-comment {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1.1rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: slideUp 0.3s ease both;
}

.mur-comment-body { flex: 1; }

.mur-comment-text {
  margin: 0.3rem 0 0;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.6;
}

/* ── Error notification ── */
.mur-error {
  background: #fff5f5 !important;
  color: #9b2c2c !important;
  border: 1px solid #feb2b2 !important;
  border-radius: 10px !important;
  font-size: 0.9rem;
}

/* ── Empty state ── */
.mur-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-faint);
  font-size: 1.05rem;
}

/* ── Footer ── */
.mur-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.mur-footer p {
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .mur-hero { padding-top: 5rem; }
  .mur-compose-card, .mur-reply-card { padding: 1.2rem; }
  .mur-post-card { padding: 1.2rem; }
}

/* ── Media embed styles ───────────────────────────────────────────────── */

/* Media URL input hint */
.mur-field-hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}

.mur-media-input::placeholder { font-size: 0.9rem; }

/* Media container */
.mur-media {
  margin: 1rem 0 0.4rem;
  border-radius: 10px;
  overflow: hidden;
}

/* YouTube responsive 16:9 wrapper */
.mur-yt-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.mur-yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Image wrapper */
.mur-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mur-img-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.mur-img-wrap:hover img {
  transform: scale(1.015);
}

/* Media badge in footer */
.mur-media-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-weight: 500;
  margin-left: auto;
}

.mur-media-badge--youtube {
  background: #fff0f0;
  color: #c00;
  border: 1px solid rgba(200,0,0,0.15);
}

.mur-media-badge--image {
  background: var(--amber-pale);
  color: var(--amber);
  border: 1px solid rgba(212,117,42,0.2);
}

/* ── Adoo.lk Sri Lanka identity ─────────────────────────────────────── */

/* Thin flag-stripe across the very top of the page */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    #8B4513 0%, #8B4513 12.5%,   /* maroon */
    #ff9933 12.5%, #ff9933 25%,   /* saffron */
    #1e7d4a 25%, #1e7d4a 37.5%,  /* green */
    #c8860a 37.5%, #c8860a 62.5%, /* gold lion band */
    #1e7d4a 62.5%, #1e7d4a 75%,  /* green */
    #ff9933 75%, #ff9933 87.5%,   /* saffron */
    #8B4513 87.5%, #8B4513 100%  /* maroon */
  );
  z-index: 9999;
}

/* Adjust navbar top so stripe is visible */
.mur-nav { top: 3px !important; }

/* Hero flag emoji size */
.mur-hero-sub { font-size: 0.85rem; }

/* Footer flag link */
.mur-footer a {
  color: var(--accent);
  text-decoration: none;
}
.mur-footer a:hover { text-decoration: underline; }

/* Post button — use accent green */
.mur-post-btn {
  background: var(--accent) !important;
  box-shadow: 0 3px 12px rgba(30,125,74,0.3) !important;
}
.mur-post-btn:hover {
  background: #165e37 !important;
  box-shadow: 0 6px 18px rgba(30,125,74,0.4) !important;
}

/* Avatar gradient — gold to green */
.mur-avatar {
  background: linear-gradient(135deg, var(--amber-pale), #d4f0e2) !important;
  color: var(--accent) !important;
  border: 2px solid rgba(30,125,74,0.2) !important;
}

/* Post featured top border */
.mur-post-featured {
  border-top: 3px solid var(--accent) !important;
}

/* Back link hover green */
.mur-back-link:hover { color: var(--accent) !important; }

/* Media badge youtube tweak */
.mur-media-badge--image {
  background: var(--accent-pale);
  color: var(--accent);
  border: 1px solid rgba(30,125,74,0.2);
}

/* ── Domain wordmark in hero ─────────────────────────────────────────── */
.mur-hero-domain {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 0.95;
  margin-top: 0.5rem;
  display: block;
}

.mur-hero-domain span {
  color: var(--accent);
}

/* Shrink the what's on your mind subtitle since domain is the star */
.mur-hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-light);
  letter-spacing: 0;
}


/* =====================================================
   Chat Widget — adoo.lk
   Facebook-style floating chat bar + windows
   ===================================================== */

:root {
  --ac-green:    #1e7d4a;
  --ac-green2:   #155c36;
  --ac-gold:     #c8860a;
  --ac-bg:       #ffffff;
  --ac-border:   #e6dcc8;
  --ac-text:     #16120a;
  --ac-muted:    #9a8e7a;
  --ac-radius:   14px;
  --ac-shadow:   0 4px 24px rgba(22,18,10,0.14);
  --ac-mine-bg:  #1e7d4a;
  --ac-their-bg: #f0f2f5;
}

/* ── Chat Bar (bottom-right toggle) ── */
.ac-bar {
  position: fixed;
  bottom: 0;
  right: 24px;
  z-index: 9000;
  width: 248px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
}

.ac-bar-toggle {
  background: var(--ac-green);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 -2px 12px rgba(30,125,74,0.2);
  transition: background 0.2s;
  font-weight: 500;
}
.ac-bar-toggle:hover { background: var(--ac-green2); }

.ac-bar-icon  { font-size: 1.1rem; }
.ac-bar-label { flex: 1; }

.ac-bar-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.ac-bar-arrow { font-size: 0.7rem; opacity: 0.7; }

.ac-bar-panel {
  background: var(--ac-bg);
  border: 1px solid var(--ac-border);
  border-bottom: none;
  box-shadow: var(--ac-shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ac-bar-panel--open {
  max-height: 420px;
  overflow-y: auto;
}

.ac-bar-search-wrap {
  padding: 0.75rem 0.75rem 0.4rem;
  position: sticky;
  top: 0;
  background: var(--ac-bg);
  border-bottom: 1px solid var(--ac-border);
}
.ac-bar-search {
  width: 100%;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--ac-border);
  border-radius: 50px;
  font-size: 0.85rem;
  background: #f7f5f0;
  outline: none;
  font-family: inherit;
  color: var(--ac-text);
}
.ac-bar-search:focus {
  border-color: var(--ac-green);
  background: #fff;
}

.ac-bar-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ac-text);
}

.ac-online-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ac-muted);
  font-weight: 600;
  padding: 0.35rem 0.85rem 0.2rem;
  text-transform: uppercase;
}

.ac-user-list { padding: 0 0.3rem 0.75rem; }

.ac-no-users {
  font-size: 0.82rem;
  color: var(--ac-muted);
  text-align: center;
  padding: 1.2rem 0.5rem;
  font-style: italic;
}

.ac-user-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.ac-user-item:hover { background: #f0f7f3; }

.ac-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6f5ed, #d4f0e2);
  color: var(--ac-green);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(30,125,74,0.15);
}

.ac-user-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ac-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-user-unread {
  background: #e74c3c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}

/* Online presence dots */
.ac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ac-dot--on { background: #31a24c; box-shadow: 0 0 0 2px rgba(49,162,76,0.25); }
.ac-dot--me { background: var(--ac-gold); box-shadow: 0 0 0 2px rgba(200,134,10,0.25); }

/* ── Chat Window ── */
.ac-win {
  position: fixed;
  bottom: 0;
  width: 276px;
  background: var(--ac-bg);
  border: 1px solid var(--ac-border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--ac-shadow);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  transition: height 0.2s;
  height: 360px;
}
.ac-win--minimized {
  height: 44px;
  overflow: hidden;
}

.ac-win-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--ac-green);
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
}

.ac-win-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.ac-win-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-win-actions { display: flex; gap: 0.25rem; }

.ac-win-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
  font-family: inherit;
}
.ac-win-btn:hover { background: rgba(255,255,255,0.3); }

.ac-win-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #fdfaf4;
}

.ac-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.ac-msg--mine   { align-self: flex-end;  align-items: flex-end; }
.ac-msg--theirs { align-self: flex-start; align-items: flex-start; }

.ac-bubble {
  padding: 0.5rem 0.85rem;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}
.ac-msg--mine   .ac-bubble { background: var(--ac-mine-bg); color: #fff; border-bottom-right-radius: 4px; }
.ac-msg--theirs .ac-bubble { background: var(--ac-their-bg); color: var(--ac-text); border-bottom-left-radius: 4px; }

.ac-msg-time {
  font-size: 0.68rem;
  color: var(--ac-muted);
  margin-top: 0.15rem;
  padding: 0 0.25rem;
}

.ac-win-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-top: 1px solid var(--ac-border);
  background: var(--ac-bg);
  flex-shrink: 0;
}

.ac-win-input {
  flex: 1;
  border: 1.5px solid var(--ac-border);
  border-radius: 50px;
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  background: #f7f5f0;
  color: var(--ac-text);
  transition: border-color 0.2s;
}
.ac-win-input:focus {
  border-color: var(--ac-green);
  background: #fff;
}

.ac-win-send {
  background: var(--ac-green);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.15s;
  flex-shrink: 0;
  font-family: inherit;
}
.ac-win-send:hover {
  background: var(--ac-green2);
  transform: scale(1.08);
}

/* ── Name Prompt overlay ── */
.ac-name-prompt {
  position: fixed;
  inset: 0;
  background: rgba(22,18,10,0.45);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 24px 80px;
  backdrop-filter: blur(2px);
}

.ac-name-box {
  background: #fff;
  border-radius: var(--ac-radius);
  padding: 1.6rem 1.6rem 1.4rem;
  width: 280px;
  box-shadow: var(--ac-shadow);
  animation: acSlideUp 0.3s ease both;
}

@keyframes acSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ac-name-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ac-text);
  margin-bottom: 0.25rem;
}
.ac-name-sub {
  font-size: 0.82rem;
  color: var(--ac-muted);
  margin-bottom: 1rem;
}
.ac-name-input {
  width: 100%;
  border: 1.5px solid var(--ac-border);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ac-text);
  outline: none;
  margin-bottom: 0.7rem;
  transition: border-color 0.2s;
}
.ac-name-input:focus { border-color: var(--ac-green); }

.ac-name-btn {
  width: 100%;
  background: var(--ac-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.ac-name-btn:hover { background: var(--ac-green2); }

@keyframes acShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}
.ac-shake { animation: acShake 0.4s ease; border-color: #e74c3c !important; }

/* ── Scrollbars ── */
.ac-win-messages::-webkit-scrollbar,
.ac-bar-panel::-webkit-scrollbar   { width: 4px; }
.ac-win-messages::-webkit-scrollbar-thumb,
.ac-bar-panel::-webkit-scrollbar-thumb { background: var(--ac-border); border-radius: 4px; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .ac-bar { right: 8px; width: 220px; }
  .ac-win { width: 260px; right: 8px !important; }
}
