/* ===========================
   CandyAI.com.au — styles.css
   =========================== */

:root {
  --bg-primary: #0d0d0d;
  --bg-sidebar: #131313;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --pink: #ff3d6b;
  --pink-light: #ff6b8e;
  --pink-dark: #e0284f;
  --purple: #2d1b4e;
  --purple-mid: #3a2260;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --text-primary: #ffffff;
  --text-secondary: #aaa;
  --text-muted: #666;
  --border: #2a2a2a;
  --sidebar-width: 180px;
  --topbar-height: 64px;
  --radius: 10px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
img { max-width: 100%; }

/* =================== TOPBAR =================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.hamburger {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #999;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger:hover span { background: #fff; }

.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-accent { color: var(--pink); }

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

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-tab:hover { color: #fff; }
.nav-tab.active {
  color: var(--pink);
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-create {
  background: var(--pink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-create:hover { background: var(--pink-dark); }

.btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-login:hover { border-color: #fff; }

/* =================== APP WRAPPER =================== */
.app-wrapper {
  display: flex;
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
}

/* =================== SIDEBAR =================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 50;
  transition: transform 0.3s ease;
}

.sidebar-nav {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.sidebar-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.sidebar-item svg { flex-shrink: 0; opacity: 0.75; }
.sidebar-item:hover svg, .sidebar-item.active svg { opacity: 1; }

.premium-item {
  color: #f8c851;
}
.premium-item svg { color: #f8c851; opacity: 1 !important; }
.premium-item:hover { background: rgba(248,200,81,0.1); color: #f8c851; }

.badge-off {
  background: var(--pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: auto;
}

.sidebar-bottom {
  padding: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-item .flag { font-size: 1rem; }

.sidebar-footer {
  display: flex;
  gap: 6px;
  padding: 8px 12px 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.sidebar-footer a:hover { color: var(--text-secondary); }

/* =================== MAIN CONTENT =================== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  overflow-x: hidden;
}

/* =================== BANNER =================== */
.banner-section {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-slide.active { opacity: 1; }

.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.banner-bg-1 {
  background: linear-gradient(135deg, #1a0010 0%, #4a0020 30%, #8b0038 60%, #c70049 80%, #2c0059 100%);
  animation: shimmer 6s ease-in-out infinite;
}
.banner-bg-2 {
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a5e 40%, #2d2d8e 70%, #4a0040 100%);
}
.banner-bg-3 {
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 40%, #0d4f6b 70%, #083d2e 100%);
}

@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Hearts floating for banner-bg-1 */
.banner-bg-1::before {
  content: '💕 💖 💝 💘 ♥';
  position: absolute;
  top: 20px; left: 30px;
  font-size: 1.5rem;
  opacity: 0.4;
  letter-spacing: 20px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.banner-sub {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8c851;
  margin: 4px 0 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.btn-join {
  display: inline-block;
  background: var(--accent-blue);
  color: #fff;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.btn-join:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59,130,246,0.5);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.banner-arrow:hover { background: rgba(255,255,255,0.25); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: var(--transition);
  cursor: pointer;
}
.dot.active { background: #fff; width: 18px; border-radius: 4px; }

/* =================== AVATARS =================== */
.avatars-section {
  padding: 28px 20px 10px;
}

.avatars-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  justify-content: center;
  flex-wrap: nowrap;
}
.avatars-row::-webkit-scrollbar { height: 4px; }
.avatars-row::-webkit-scrollbar-track { background: transparent; }
.avatars-row::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 84px;
}

.avatar-ring {
  position: relative;
  width: 80px; height: 80px;
}

.avatar-img {
  width: 76px; height: 76px;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  overflow: hidden;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--pink), #ff8c00, var(--pink));
  animation: rotate 3s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg-primary);
}

.avatar-img { z-index: 2; }

.avatar-item:hover .avatar-ring::before {
  background: conic-gradient(var(--pink-light), #fff, var(--pink-light));
}

.avatar-item:hover { transform: scale(1.05); }

.live-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 12px; height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  z-index: 3;
  animation: pulse-green 1.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.avatar-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-item:hover .avatar-name { color: #fff; }

/* =================== LIVE ACTION =================== */
.live-action-section {
  padding: 20px 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.heading-jump {
  color: var(--pink);
  font-style: italic;
}

.heading-live-box {
  border: 2px solid #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.heading-action {
  color: #fff;
  font-size: 1.5rem;
}

.beta-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* =================== CARDS =================== */
.cards-wrapper {
  position: relative;
}

.cards-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.cards-row::-webkit-scrollbar { display: none; }

.char-card {
  min-width: 220px;
  max-width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.4s ease both;
  flex-shrink: 0;
}

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

.char-card:nth-child(1) { animation-delay: 0s; }
.char-card:nth-child(2) { animation-delay: 0.07s; }
.char-card:nth-child(3) { animation-delay: 0.14s; }
.char-card:nth-child(4) { animation-delay: 0.21s; }
.char-card:nth-child(5) { animation-delay: 0.28s; }
.char-card:nth-child(6) { animation-delay: 0.35s; }

.char-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.card-img {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-placeholder {
  font-size: 4rem;
  opacity: 0.6;
}

.live-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
}

.live-dot-card {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.card-info {
  padding: 8px 10px 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.card-age {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 20px);
  margin: 6px 10px 10px;
  padding: 8px;
  background: #5b7cf7;
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-play:hover {
  background: #4169e8;
  transform: scale(1.02);
}

.cards-arrow {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.cards-arrow:hover { background: rgba(255,255,255,0.25); }

/* =================== ABOUT =================== */
.about-section {
  padding: 30px 24px;
  max-width: 900px;
}

.about-text p {
  color: #ccc;
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* =================== FOOTER =================== */
.site-footer {
  background: linear-gradient(180deg, #0d0d0d 0%, #120008 100%);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  justify-content: space-between;
}

.footer-brand {
  min-width: 220px;
  max-width: 280px;
  flex: 1;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  cursor: pointer;
}

.footer-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-contact {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-copy a { color: var(--pink); }
.footer-copy a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  flex: 2;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 130px;
}

.footer-col h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.footer-col h4 {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.85rem;
  color: #ccc;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-social {
  margin-top: 4px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-icon.discord { background: #5865f2; }
.social-icon.twitter { background: #000; border: 1px solid #333; }
.social-icon:hover { transform: scale(1.1); opacity: 0.9; }

.payment-icons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.payment-icons img { border-radius: 4px; }

/* =================== MODALS =================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  display: flex;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  max-width: 680px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-image {
  width: 280px;
  min-height: 420px;
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1a4e 50%, #1a0f2e 100%);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  overflow: hidden;
}

.modal-img-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-placeholder {
  font-size: 8rem;
  opacity: 0.4;
}

.modal-logo {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.modal-form {
  flex: 1;
  padding: 32px 28px;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.08);
  color: #aaa;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.modal-form h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  position: relative;
  margin-bottom: 14px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 12px 12px 38px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--pink);
  background: #222;
}
.form-input::placeholder { color: #666; }

.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  font-size: 0.9rem;
  opacity: 0.6;
}
.toggle-pw:hover { opacity: 1; }

.hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
  padding-left: 4px;
}

.btn-form-submit {
  width: 100%;
  background: var(--pink);
  color: #fff;
  padding: 13px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  margin-bottom: 16px;
}
.btn-form-submit:hover { background: var(--pink-dark); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

.btn-google {
  width: 100%;
  background: #fff;
  color: #333;
  padding: 11px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  margin-bottom: 10px;
}
.btn-google:hover { background: #f1f1f1; }

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-discord-auth {
  flex: 1;
  background: #5865f2;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition);
}
.btn-discord-auth:hover { background: #4752c4; }

.btn-x-auth {
  flex: 1;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition);
}
.btn-x-auth:hover { background: #111; border-color: #555; }

.terms-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}
.terms-note a { color: var(--text-secondary); text-decoration: underline; }

.modal-hr { border: none; border-top: 1px solid #2a2a2a; margin: 10px 0; }

.signin-prompt {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 6px;
}

.accent-link {
  color: var(--pink);
  font-weight: 600;
}
.accent-link:hover { text-decoration: underline; }

/* =================== RESPONSIVE =================== */


/* =================== PAGE VIEWS =================== */
.page-view { display: block; }

/* =================== CHARACTERS GRID =================== */
.characters-grid-section {
  padding: 32px 20px 16px;
}

.grid-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grid-char-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 2/3;
  background: var(--bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-char-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.grid-card-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-card-placeholder {
  font-size: 3.5rem;
  opacity: 0.5;
}

.grid-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 32px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grid-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.grid-card-tag {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 900px) {
  .char-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =================== CTA SECTION =================== */
.cta-section {
  margin: 8px 20px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a0030 0%, #3d0060 50%, #200040 100%);
  border: 1px solid rgba(255,61,107,0.3);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '✨';
  position: absolute;
  font-size: 8rem;
  right: 30px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 400px;
}

.btn-cta-create {
  background: var(--pink);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,61,107,0.4);
}
.btn-cta-create:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,61,107,0.55);
}

/* =================== FAQ SECTION =================== */
.faq-section {
  padding: 20px 20px 32px;
  max-width: 860px;
}

.faq-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition);
  gap: 12px;
}

.faq-question:hover { background: rgba(255,255,255,0.04); }
.faq-question[aria-expanded="true"] { color: var(--pink); }

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  stroke: var(--pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* =================== DISCOVER PAGE =================== */
.discover-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.discover-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.discover-feed {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.disc-post {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.disc-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.disc-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.disc-user-info { flex: 1; }
.disc-user-name { font-weight: 700; font-size: 0.95rem; }
.disc-time { font-size: 0.78rem; color: var(--text-muted); }

.disc-post-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #ddd;
  margin-bottom: 12px;
}

.disc-post-images {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.disc-post-images.count-1 { grid-template-columns: 1fr; }
.disc-post-images.count-2 { grid-template-columns: 1fr 1fr; }
.disc-post-images.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.disc-post-images.count-3 .disc-img:first-child { grid-column: span 2; }
.disc-post-images.count-4 { grid-template-columns: 1fr 1fr; }

.disc-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.75;
  background: var(--bg-card);
}

.disc-post-actions {
  display: flex;
  gap: 24px;
}

.disc-action-btn {
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  transition: var(--transition);
  padding: 4px 0;
}

.disc-action-btn:hover { color: var(--pink); }
.disc-action-btn.liked { color: var(--pink); }

/* =================== PREMIUM PAGE =================== */
.premium-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}

.premium-heading {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.premium-subheading {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.premium-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.plan-card:hover {
  border-color: rgba(255,61,107,0.4);
  transform: translateY(-2px);
}

.plan-featured {
  border-color: var(--pink);
  background: linear-gradient(160deg, #1a0020, #200010);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.plan-duration {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 8px;
}

.plan-discount {
  display: inline-block;
  background: rgba(255,61,107,0.2);
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.plan-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.plan-price-new {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.plan-price-new span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.btn-plan-select {
  width: 100%;
  background: var(--pink);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  margin-bottom: 10px;
}
.btn-plan-select:hover { background: var(--pink-dark); }

.plan-billing {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.premium-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.premium-payment-method {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.payment-method-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.payment-method-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.premium-benefits h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #ddd;
}

@media (max-width: 700px) {
  .premium-plans { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}



/* =================== UTILITY =================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* btn-link: makes anchor look like button */
.btn-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

/* btn-plan-select as anchor */
a.btn-plan-select {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

/* btn-cta-create as anchor */
a.btn-cta-create {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* btn-play as anchor */
a.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* btn-google as anchor */
a.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* =================== IMPROVED MOBILE RESPONSIVE =================== */
@media (max-width: 1024px) {
  .char-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { gap: 32px; }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
    --topbar-height: 58px;
  }

  .topbar { padding: 0 14px; }
  .topbar-nav { display: none; }

  .sidebar {
    transform: translateX(-200px);
    width: 200px;
    z-index: 150;
  }
  .sidebar.open { transform: translateX(0); }

  .main-content { margin-left: 0; }

  .banner-section { height: 220px; }
  .banner-title { font-size: 1.8rem; }
  .banner-sub { font-size: 1.1rem; }
  .btn-join { padding: 9px 22px; font-size: 0.85rem; }

  .section-heading { font-size: 1.1rem; }

  .char-card { min-width: 170px; max-width: 170px; }
  .card-img { height: 220px; }

  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .footer-inner { flex-direction: column; gap: 24px; padding: 0 20px; }
  .footer-brand { max-width: 100%; }
  .footer-links { gap: 24px; }

  .modal { flex-direction: column; max-height: 95vh; }
  .modal-image { width: 100%; min-height: 100px; }
  .modal-img-placeholder { font-size: 3.5rem; }
  .modal-logo { font-size: 1.1rem; }

  .topbar-actions .btn-create { font-size: 0.75rem; padding: 7px 12px; }
  .topbar-actions .btn-login { display: none; }

  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .cta-text p { max-width: 100%; }

  .premium-plans { grid-template-columns: 1fr; gap: 20px; }

  .avatars-row { justify-content: flex-start; }

  .discover-feed { padding: 12px 16px; }
  .disc-post-images .disc-img { height: 160px; }
}

@media (max-width: 480px) {
  .footer-links { gap: 20px; }
  .footer-col { min-width: 100px; }
  .cards-row { gap: 8px; }
  .char-card { min-width: 150px; max-width: 150px; }
  .card-img { height: 195px; }
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .banner-title { font-size: 1.5rem; }
  .banner-section { height: 190px; }
  .topbar-actions .btn-create { font-size: 0.72rem; padding: 6px 10px; }
  .premium-page { padding: 20px 16px 40px; }
  .grid-card-placeholder { font-size: 2.5rem; }
}

/* Sidebar bottom overflow fix on small screens */
@media (max-width: 768px) {
  .sidebar { overflow-y: auto; }
}
