:root {
  --bg: #f7f8fc;
  --bg-strong: #17143b;
  --bg-dark: #090a16;
  --card: rgba(255,255,255,0.8);
  --card-strong: #ffffff;
  --surface: rgba(255,255,255,0.7);
  --text: #17143b;
  --text-muted: #5c6284;
  --text-dark: #f3f5ff;
  --border: rgba(108,77,246,0.16);
  --purple: #6c4df6;
  --purple-deep: #17143b;
  --pink: #ec4899;
  --blue: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-soft: 0 10px 26px rgba(23, 20, 59, 0.09);
  --shadow-glow: 0 20px 40px rgba(108, 77, 246, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Tajawal", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7f8fc 0%, #eef2ff 100%);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
button.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -8px 0 0 -8px; border: 2px solid var(--purple); border-right-color: transparent; border-radius: 50%; animation: buttonSpin 0.7s linear infinite; }
button.pill-button.primary.is-loading::after { border-color: #fff; border-right-color: transparent; }
@keyframes buttonSpin { to { transform: rotate(360deg); } }

body.dark-mode {
  background: linear-gradient(180deg, #090a16 0%, #101827 100%);
  color: var(--text-dark);
}
body.dark-mode .app-shell,
body.dark-mode .glass-card,
body.dark-mode .nav-panel,
body.dark-mode .stat-card,
body.dark-mode .message-card,
body.dark-mode .share-card,
body.dark-mode .panel,
body.dark-mode .settings-box,
body.dark-mode .feature-card,
body.dark-mode .social-proof,
body.dark-mode .ghost-card,
body.dark-mode .message-preview,
body.dark-mode .list-item,
body.dark-mode .notice {
  background: rgba(18, 21, 40, 0.9);
  border-color: rgba(255,255,255,0.08);
  color: var(--text-dark);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
}
body.dark-mode .muted,
body.dark-mode .hero p,
body.dark-mode .nav-links a,
body.dark-mode .feature-card p,
body.dark-mode .list-item,
body.dark-mode .message-preview .muted {
  color: rgba(255,255,255,0.75);
}
body.dark-mode .page-title,
body.dark-mode .hero h1,
body.dark-mode .section-title,
body.dark-mode .profile-name,
body.dark-mode .feature-card h3,
body.dark-mode .message-body,
body.dark-mode .brand {
  color: var(--text-dark);
}
body.dark-mode .input,
body.dark-mode .textarea,
body.dark-mode .select {
  background: rgba(20, 24, 45, 0.9);
  color: var(--text-dark);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .pill-button.secondary,
body.dark-mode .pill-button.ghost,
body.dark-mode .action-chip,
body.dark-mode .badge,
body.dark-mode .tag {
  background: rgba(255,255,255,0.04);
  color: var(--text-dark);
  border: 1px solid rgba(255,255,255,0.06);
}
body.dark-mode .soft-divider { background: rgba(255,255,255,0.08); }
body.dark-mode .hero-visual, body.dark-mode .profile-visual { box-shadow: 0 24px 60px rgba(0,0,0,0.32); }
body.dark-mode .brand-mark {
  box-shadow: 0 18px 30px rgba(108, 77, 246, 0.35);
}
body.dark-mode .brand-word {
  color: var(--text-dark);
}
body.dark-mode .settings-quick-nav {
  background: rgba(18, 21, 40, 0.9);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 32px rgba(0,0,0,0.28), 0 0 0 8px rgba(255,255,255,0.02);
}
body.dark-mode .settings-quick-link {
  color: #e6e9ff;
}
body.dark-mode .settings-quick-link span {
  color: #e6e9ff;
}
body.dark-mode .settings-quick-link svg {
  stroke: currentColor;
}
body.dark-mode .settings-quick-link img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(12%) saturate(590%) hue-rotate(201deg) brightness(99%) contrast(110%);
}
body.dark-mode .settings-quick-link.is-primary::before {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}
body.dark-mode .settings-quick-link.is-primary::after {
  background: linear-gradient(135deg, #7b5cf7 0%, #8b60ff 20%, #a85ef0 50%, #d548a5 75%, #ff7d6a 100%);
  box-shadow: inset 0 8px 16px rgba(255,255,255,0.20), inset 0 -14px 18px rgba(40,18,93,0.22), 0 16px 24px rgba(137,98,255,0.22);
}
body.dark-mode .settings-quick-link.is-primary img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(44%) saturate(1400%) hue-rotate(220deg) brightness(90%) contrast(125%);
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.app-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(226, 230, 238, 0.9);
  border-bottom: 1px solid rgba(108,77,246,0.08);
}
body.dark-mode .topbar {
  background: rgba(9, 10, 22, 0.72);
  border-bottom-color: rgba(255,255,255,0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  position: relative;
  padding-right: clamp(180px, 21vw, 260px);
}
.navbar .brand {
  order: 2;
  position: absolute;
  top: 0px;
  right: 18px;
  z-index: 5;
  transform: none;
}
.navbar .nav-links { order: 2; margin-left: auto; }
.navbar .chrome-tools { order: 3; }
.navbar .nav-actions { order: 1; margin-left: auto; }
.navbar .chrome-menu-button { order: 1; }

.has-app-chrome .topbar { margin-right: 0; }
.has-app-chrome .page-shell, .has-app-chrome > main { margin-right: 0; }
.app-sidebar {
  position: fixed;
  top: 78px;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(360px, 84vw);
  height: calc(100vh - 78px);
  padding: 30px 18px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255,255,255,0.78);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(23,20,59,0.06);
  backdrop-filter: blur(18px);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.sidebar-open .app-sidebar { transform: translateX(0); }
.sidebar-backdrop { position: fixed; inset: 78px 0 0; z-index: 19; display: block; background: rgba(9,10,22,0.28); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
 .has-app-chrome .topbar { z-index: 30; }
body.dark-mode .app-sidebar { background: rgba(18,21,40,0.92); }
.sidebar-heading { display: grid; gap: 5px; padding: 0 12px 22px; }
.sidebar-kicker { color: var(--purple); font-size: 0.76rem; font-weight: 800; }
.sidebar-heading strong { font-size: 1.05rem; }
.sidebar-links { display: grid; gap: 7px; }
.sidebar-links a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; color: var(--text-muted); font-size: 0.92rem; font-weight: 700; transition: 0.2s ease; }
.sidebar-links a:hover, .sidebar-links a.active { background: rgba(108,77,246,0.1); color: var(--purple-deep); }
.sidebar-links a { position: relative; }.sidebar-message-count { display: inline-grid; min-width: 18px; height: 18px; margin-right: auto; place-items: center; padding: 0 4px; border-radius: 999px; color: #fff; background: #d33f59; font-size: 0.62rem; font-weight: 800; line-height: 1; direction: ltr; }.sidebar-message-count[hidden] { display: none; }
body.dark-mode .sidebar-links a:hover, body.dark-mode .sidebar-links a.active { color: #fff; }
.sidebar-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(108,77,246,0.1); color: var(--purple); font-size: 1.15rem; line-height: 1; }
.sidebar-help { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px; border-top: 1px solid var(--border); color: var(--text-muted); }
.sidebar-actions { display: grid; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.sidebar-actions > * { width: 100%; justify-content: flex-start; }
.sidebar-help div { display: grid; gap: 2px; }
.sidebar-help strong { color: var(--text); font-size: 0.78rem; }
body.dark-mode .sidebar-help strong { color: var(--text-dark); }
.sidebar-help small { font-size: 0.68rem; }
.chrome-menu-button { width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 12px; background: transparent; cursor: pointer; }
.chrome-menu-button span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--text); }
body.dark-mode .chrome-menu-button span { background: var(--text-dark); }
.chrome-tools { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-search { display: flex; align-items: center; gap: 8px; width: min(230px, 22vw); max-width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.58); color: var(--text-muted); position: relative; }
.site-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 0.82rem; }
.site-search svg, .site-search i, .site-search img { width: 14px; height: 14px; flex: 0 0 14px; }
.chrome-coins, .chrome-dollars, .site-search, .chrome-icon-button { flex: 0 0 auto; }
.site-search-results { position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; display: grid; grid-template-columns: 1fr; gap: 8px; width: min(380px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: 320px; overflow-y: auto; overflow-x: hidden; min-width: 0; padding: 8px; border: 1px solid rgba(108,77,246,0.14); border-radius: 18px; background: rgba(255,255,255,0.98); box-shadow: 0 22px 42px rgba(23,20,59,0.16), 0 6px 18px rgba(108,77,246,0.08); backdrop-filter: blur(10px); }
.site-search-results[hidden] { display: none; }
.site-search-results a { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; color: var(--text); font-size: 0.76rem; text-decoration: none; text-align: right; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.site-search-results a:hover { border-color: rgba(108,77,246,0.16); background: linear-gradient(135deg, rgba(108,77,246,0.08), rgba(236,72,153,0.04)); transform: translateY(-1px); box-shadow: 0 10px 18px rgba(108,77,246,0.08); }
.site-search-results a:nth-child(1) { min-height: 92px; padding: 12px 14px; }
.site-search-results a:nth-child(2), .site-search-results a:nth-child(3) { min-height: 68px; }
.site-search-results strong, .site-search-results small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-search-results small { color: var(--text-muted); font-size: 0.68rem; direction: ltr; text-align: right; }
.search-result-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; overflow: hidden; border: 2px solid rgba(255,255,255,0.9); border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); box-shadow: 0 8px 18px rgba(108,77,246,0.2); }
.site-search-results a:nth-child(1) .search-result-avatar { width: 52px; height: 52px; flex-basis: 52px; }
.search-result-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.search-result-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-size: 0.8rem; font-weight: 800; }
.search-result-copy { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; gap: 3px; }
.site-search-results a:nth-child(1) .search-result-copy { align-items: flex-start; }
.search-result-copy strong { display: block; min-width: 0; max-width: 100%; color: var(--text); font-size: 0.8rem; line-height: 1.3; font-weight: 800; word-break: normal; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.site-search-results a:nth-child(1) .search-result-copy strong { font-size: 0.9rem; }
.search-result-copy small { display: block; min-width: 0; max-width: 100%; color: var(--text-muted); font-size: 0.66rem; text-align: right; word-break: normal; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-copy small::before { content: '@'; }
.site-search-results a:nth-child(1) { border-radius: 16px 16px 12px 12px; }
.site-search-results a:nth-child(2), .site-search-results a:nth-child(3) { border-radius: 12px; }
.site-search-results a:nth-child(1) .search-result-copy strong,
.site-search-results a:nth-child(1) .search-result-copy small { width: 100%; text-align: right; }
.site-search-results a:nth-child(1) { width: auto; }
.site-search-results a:nth-child(2), .site-search-results a:nth-child(3) { width: auto; }
.search-show-all { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(108,77,246,0.15); background: linear-gradient(135deg, rgba(108,77,246,0.08), rgba(236,72,153,0.05)); color: var(--purple); font-size: 0.72rem; font-weight: 800; text-align: center; }
.search-show-all:hover { background: linear-gradient(135deg, rgba(108,77,246,0.12), rgba(236,72,153,0.09)); }
.site-search-results .search-show-all { margin-top: 2px; }
.search-results-page { max-width: 900px; }
.search-results-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.search-results-grid { display: grid; gap: 12px; }
.search-result-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 92px; padding: 12px 14px; border: 1px solid rgba(108,77,246,0.10); border-radius: 18px; background: rgba(234,234,238,0.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.search-result-card:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(23,20,59,0.06); }
.search-result-card-copy { display: grid; gap: 2px; flex: 1; min-width: 0; text-align: right; }
.search-result-card-copy strong { display: block; font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.02em; color: #17171c; font-weight: 800; }
.search-result-card-copy small { display: block; color: #52525c; direction: ltr; font-size: 0.8rem; }
.search-result-card-copy span { color: #5f6170; font-size: 0.7rem; }
.search-result-card-meta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-result-premium { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 54px; padding: 0 10px; border-radius: 14px; background: linear-gradient(135deg, #111111, #1f1f1f); color: #fff; font-size: 0.5rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(0,0,0,0.16); }
.search-result-card-avatar { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #111111; color: #fff; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.7); }
.search-result-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-results-empty { padding: 22px; border-radius: 18px; background: rgba(255,255,255,0.75); border: 1px solid rgba(108,77,246,0.12); color: var(--text-muted); text-align: center; }
body.dark-mode .search-show-all, body.dark-mode .search-result-card, body.dark-mode .search-results-empty { background: rgba(18,21,40,0.96); border-color: rgba(255,255,255,0.08); color: var(--text-dark); }
body.dark-mode .search-result-card-copy strong { color: var(--text-dark); }
body.dark-mode .search-result-card-copy small, body.dark-mode .search-result-card-copy span, body.dark-mode .search-results-empty { color: rgba(255,255,255,0.72); }
body.dark-mode .search-result-premium { background: linear-gradient(135deg, #ffffff, #dedede); color: #111; }
body.dark-mode .site-search-results { background: rgba(18,21,40,0.97); border-color: rgba(149,127,255,0.24); box-shadow: 0 22px 42px rgba(0,0,0,0.35); }
body.dark-mode .site-search-results a { color: var(--text-dark); }
body.dark-mode .site-search-results strong, body.dark-mode .site-search-results small { color: var(--text-dark); }
body.dark-mode .site-search-results .search-result-copy small { color: rgba(255,255,255,0.7); }
body.dark-mode .site-search { background: rgba(255,255,255,0.05); }
body.dark-mode .site-search input { color: var(--text-dark); }
.chrome-icon-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }.notification-button img { width: 24px; height: 24px; object-fit: contain; }
.chrome-icon-button i { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; box-sizing: border-box; border: 2px solid var(--card-strong); border-radius: 999px; color: #fff; background: #d33f59; font-family: inherit; font-size: 0.62rem; font-style: normal; font-weight: 800; line-height: 1; direction: ltr; }.chrome-icon-button i[hidden] { display: none; }
.notification-panel { position: absolute; top: calc(100% + 10px); left: 0; right: auto; z-index: 70; width: min(300px, calc(100vw - 22px)); max-width: calc(100vw - 22px); min-width: 0; box-sizing: border-box; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-strong); box-shadow: 0 18px 38px rgba(23,20,59,0.18); transform: none; }
.notification-panel[hidden] { display: none; }
.notification-panel-title { padding: 5px 8px 8px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 0.82rem; font-weight: 800; }
.notification-list { display: grid; max-height: 300px; overflow-y: auto; }
.notification-view-all { display: block; margin: 7px 2px 0; padding: 8px; border-radius: 8px; color: var(--purple); background: rgba(108,77,246,0.06); font-size: 0.68rem; font-weight: 800; text-align: center; text-decoration: none; }
.notification-mark-all { width: 100%; margin-top: 7px; border: 1px solid rgba(211,63,89,0.18); border-radius: 8px; padding: 7px; color: #b43d52; background: #fff5f6; font-family: inherit; font-size: 0.67rem; font-weight: 800; cursor: pointer; }.notification-mark-all:hover { background: #ffecef; }.page-mark-all { width: auto; min-width: 150px; margin-top: 0; padding-inline: 12px; }
.notification-item { display: grid; gap: 2px; padding: 9px 8px; border-bottom: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.notification-item { grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; }
.notification-item:hover, .notification-item.is-unread { background: rgba(108,77,246,0.08); }
.notification-item.is-locked-notification { background: #fff4f5; }.notification-item.is-locked-notification .notification-avatar { background: #d33f59; }.notification-item.is-locked-notification .notification-copy strong { color: #b33d52; }
.notification-item:has(.notification-avatar) .notification-copy strong { line-height: 1.4; }
.notification-item strong { font-size: 0.76rem; }
.notification-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 0.72rem; }
.notification-item small { color: var(--text-muted); font-size: 0.64rem; }
.notification-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-size: 0.72rem; font-weight: 800; }
.notification-avatar img { width: 100%; height: 100%; object-fit: cover; }
.notification-copy { display: grid; min-width: 0; gap: 2px; }
.notification-empty { padding: 18px 8px; color: var(--text-muted); font-size: 0.76rem; text-align: center; }
body.dark-mode .notification-panel { background: #121528; }
body.dark-mode .notification-panel-title, body.dark-mode .notification-item { color: var(--text-dark); }
.notifications-page { max-width: 760px; }.notifications-full-list { display: grid; gap: 8px; }.notification-item-full { min-height: 56px; padding: 13px; }.notification-item-full strong { font-size: 0.86rem; }.notification-item-full span { white-space: normal; }.notification-item-full small { margin-top: 3px; }
.site-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; margin: 36px 0 0 248px; padding: 30px max(24px, calc((100vw - var(--container)) / 2)) 26px; border-top: 1px solid var(--border); color: var(--text-muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 1.05rem; }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 0.9rem; border-width: 2px; }
.site-footer p { margin: 8px 0 0; font-size: 0.76rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.8rem; font-weight: 700; }
.site-footer small { font-size: 0.72rem; }
.profile-page-wrap { max-width: 760px; }
.profile-page-card { overflow: hidden; border: 1px solid rgba(108,77,246,0.12); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,245,255,0.85)); box-shadow: var(--shadow-soft); }
body.dark-mode .profile-page-card { background: linear-gradient(180deg, rgba(18,21,40,0.96), rgba(15,18,33,0.96)); }
.profile-page-cover { min-height: 190px; display: grid; place-items: center; padding: 26px; background: linear-gradient(135deg, rgba(108,77,246,0.36), rgba(236,72,153,0.22), rgba(59,130,246,0.18)); background-size: cover; background-position: center; }
.profile-page-avatar { width: 104px; height: 104px; display: grid; place-items: center; overflow: hidden; border: 4px solid rgba(255,255,255,0.82); border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-size: 2.2rem; font-weight: 800; box-shadow: 0 12px 26px rgba(23,20,59,0.2); }
.profile-page-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-page-content { display: grid; justify-items: center; gap: 8px; padding: 28px 24px 30px; text-align: center; }
.profile-page-name { margin: 5px 0 0; font-size: clamp(1.65rem, 4vw, 2.2rem); line-height: 1.3; }
.profile-page-username { margin: 0; color: var(--purple); direction: ltr; font-size: 0.9rem; font-weight: 700; }
.profile-page-bio { max-width: 520px; margin: 4px 0 0; padding: 10px 16px; border: 1px solid rgba(108,77,246,0.12); border-radius: 12px; color: var(--text-muted); background: rgba(108,77,246,0.04); font-size: 0.9rem; line-height: 1.7; }
.profile-page-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; width: min(100%, 430px); margin: 8px 0 0; }
.profile-page-stats div { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 8px; padding: 12px 14px; border: 1px solid rgba(108,77,246,0.12); border-radius: 12px; background: rgba(255,255,255,0.7); text-align: right; box-shadow: 0 8px 18px rgba(38,28,100,0.03); }
.profile-stat-icon { grid-row: 1 / span 2; width: 30px; height: 30px; object-fit: contain; }
.profile-page-stats strong { color: var(--text); font-size: 1.1rem; }
body.dark-mode .profile-page-stats strong { color: var(--text-dark); }
.profile-page-stats small { color: var(--text-muted); font-size: 0.7rem; }
body.dark-mode .profile-page-stats div { background: rgba(255,255,255,0.02); }
body.dark-mode .profile-page-bio { background: rgba(108,77,246,0.08); color: rgba(255,255,255,0.8); }
.profile-page-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 8px 12px; border-radius: 999px; color: var(--text-muted); background: rgba(108,77,246,0.04); font-size: 0.72rem; }
.profile-page-link code { max-width: 260px; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.profile-page-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.eyebrow { display: inline-block; padding: 4px 10px; border: 1px solid rgba(108,77,246,0.12); border-radius: 999px; background: rgba(108,77,246,0.06); color: var(--purple); font-size: 0.72rem; font-weight: 700; }
.public-profile-stats { display: flex; justify-content: center; gap: 5px; width: 100%; margin-top: 20px; }.public-profile-stats div { display: flex; width: min(31.5%, 96px); min-width: 0; min-height: 66px; box-sizing: border-box; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 3px; overflow: hidden; border: 1px solid rgba(108,77,246,0.16); border-radius: 8px; background: rgba(108,77,246,0.04); text-align: center; }.public-profile-stats .profile-stat-icon { width: 24px; height: 24px; flex: 0 0 24px; margin-bottom: 1px; }.public-profile-stats strong { display: block; max-width: 100%; color: var(--text); font-size: 0.82rem; line-height: 1.2; white-space: nowrap; }.public-profile-stats small { display: block; max-width: 100%; overflow: hidden; font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.public-profile-stats > div:nth-child(3) strong { display: block; width: 100%; box-sizing: border-box; overflow: hidden; font-size: 0.56rem; direction: rtl; text-align: center; white-space: nowrap; }
.profile-page-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }
.profile-page-actions [data-visitor-action][hidden] { display: none; }
.profile-message-button { width: auto; padding: 0.68rem 1.1rem; font-size: 0.82rem; }
.gift-action-button { border-color: rgba(217,154,32,0.35); color: #9e6809; background: #fff8e8; }
.send-coins-action-button { border-color: rgba(108,77,246,0.35); color: #4832c2; background: #f2f0ff; }
.gift-dialog-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(16, 20, 44, 0.5); z-index: 60; }.gift-dialog-backdrop[hidden] { display: none; }
.send-coins-dialog { width: min(100%, 390px); overflow: hidden; border: 1px solid rgba(108,77,246,0.12); border-radius: 18px; background: #fff; box-shadow: 0 24px 56px rgba(16,20,44,0.2); }
.send-coins-header { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.send-coins-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #f5c453, #d99a20); font-size: 1.3rem; }
.send-coins-header h2 { margin: 0; font-size: 1.1rem; }
.send-coins-header p { margin: 3px 0 0; color: var(--muted); font-size: 0.7rem; }
.send-coins-close { margin-inline-start: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(38,28,100,0.06); color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.send-coins-body { padding: 16px 18px 18px; }
.send-coins-field { display: grid; gap: 8px; }
.send-coins-field label { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.send-coins-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(108,77,246,0.16); border-radius: 12px; background: #faf7ff; }
.send-coins-input span { color: #d99a20; font-size: 1.2rem; font-weight: 800; }
.send-coins-input input { flex: 1; border: 0; background: transparent; color: var(--text); font-family: inherit; font-size: 1.05rem; font-weight: 800; direction: ltr; }
.send-coins-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-top: 14px; padding: 12px 10px; border: 1px solid rgba(108,77,246,0.08); border-radius: 12px; background: #f9f5ff; }
.send-coins-summary span { color: var(--muted); font-size: 0.72rem; }
.send-coins-summary strong { font-size: 0.8rem; }
.send-coins-actions { display: flex; gap: 10px; margin-top: 16px; }
.send-coins-actions button { flex: 1; min-height: 42px; border: 0; border-radius: 12px; font-family: inherit; font-weight: 800; cursor: pointer; }
.send-coins-cancel { background: #f3f4f6; color: var(--text); }
.send-coins-confirm { background: linear-gradient(135deg, #5b63c7, #7d5af6); color: #fff; }
.gift-dialog { width: min(100%, 440px); max-height: min(620px, 86vh); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,0.72); border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(16,20,44,0.28); user-select: none; }.gift-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--border); background: #fff; }.gift-dialog-head h2 { margin: 0; font-size: 1.1rem; }.gift-dialog-head p { margin: 3px 0 0; color: var(--muted); font-size: 0.75rem; }.gift-dialog-close { width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--muted); background: rgba(38,28,100,0.06); font-size: 1.1rem; cursor: pointer; }.gift-items { display: grid; gap: 8px; overflow: auto; padding: 12px 18px; background: #fff; }.gift-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fbfbff; }.gift-item-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #f3efff; font-size: 1.25rem; }.gift-item strong { display: block; font-size: 0.82rem; }.gift-item small { color: var(--muted); font-size: 0.67rem; }.gift-item-actions { display: flex; align-items: center; gap: 6px; }.gift-quantity-control { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid rgba(38,28,100,0.12); border-radius: 8px; background: #fff; direction: ltr; }.gift-quantity-control button { width: 22px; height: 27px; border: 0; color: var(--purple-deep); background: transparent; font-size: 0.9rem; font-weight: 800; cursor: pointer; }.gift-quantity-control input { width: 24px; height: 27px; padding: 0; border: 0; border-right: 1px solid rgba(38,28,100,0.1); border-left: 1px solid rgba(38,28,100,0.1); color: var(--text); background: transparent; text-align: center; font-family: inherit; font-size: 0.7rem; font-weight: 800; }.gift-quantity-control input::-webkit-inner-spin-button, .gift-quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }.gift-item-actions > button { border: 0; border-radius: 8px; padding: 6px 9px; color: #fff; background: #237f83; font-family: inherit; font-size: 0.68rem; font-weight: 800; cursor: pointer; }.gift-item-actions > button:disabled { opacity: 0.65; cursor: wait; }.gift-empty { padding: 22px 8px; color: var(--muted); text-align: center; font-size: 0.8rem; }
body.dark-mode .gift-dialog, body.dark-mode .gift-dialog-head, body.dark-mode .gift-items { background: #20243a; } body.dark-mode .gift-item { background: #282d47; }
.profile-page-link { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--text-muted); font-size: 0.72rem; }
.profile-page-link code { max-width: 260px; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.chrome-coins { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface); }
.chrome-coins > span, .wallet-coin-mark { color: #d99a20; }
.chrome-coins > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 154, 32, 0.12);
  font-size: 1.15rem;
  line-height: 1;
}
.chrome-coins strong { font-size: 0.82rem; }
.chrome-coins small { color: var(--muted); font-size: 0.68rem; direction: ltr; }
.chrome-dollars { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 9px; border: 1px solid rgba(57,175,132,0.24); border-radius: 12px; color: #176e57; background: #effaf5; font-size: 0.78rem; font-weight: 800; text-decoration: none; direction: ltr; }
.chrome-dollars > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #239b75;
  font-size: 0.95rem;
  line-height: 1;
}
.wallet-page { max-width: 900px; }
.wallet-balance-card { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 18px; padding: 26px 28px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #29235f, #6545bd 58%, #cf4d9d); box-shadow: 0 18px 34px rgba(67, 48, 154, 0.2); }
.wallet-label { display: block; color: rgba(255,255,255,0.78); font-size: 0.82rem; }
.wallet-balance { display: inline-block; margin-top: 4px; font-size: clamp(2rem, 6vw, 3.1rem); direction: ltr; }
.wallet-currency { margin-right: 8px; color: #f5cf73; font-weight: 700; direction: ltr; }
.wallet-coin-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; color: #ffe19a; font-size: 1.8rem; background: rgba(255,255,255,0.13); }
.wallet-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wallet-action { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; padding: 20px; }
.wallet-package-card { display: block; overflow: hidden; border-color: rgba(108,77,246,0.16); }.wallet-package-card.deposit-card { background: linear-gradient(145deg, rgba(57, 175, 132, 0.1), rgba(255,255,255,0.96) 45%); }.wallet-package-card.exchange-card { background: linear-gradient(145deg, rgba(41,137,240,0.1), rgba(255,255,255,0.96) 45%); }.wallet-package-card.withdraw-card { background: linear-gradient(145deg, rgba(211,76,100,0.08), rgba(255,255,255,0.96) 45%); }.exchange-icon { color: #278bf0; background: rgba(39,139,240,0.12); }.wallet-action-heading { display: flex; align-items: center; gap: 12px; }.wallet-package-card form { margin-top: 16px; }.wallet-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }.wallet-package { position: relative; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(108,77,246,0.14); border-radius: 10px; color: var(--text); background: rgba(255,255,255,0.78); font-family: inherit; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }.wallet-package:hover, .wallet-package.is-selected { transform: translateY(-2px); border-color: #5d70d8; box-shadow: 0 8px 16px rgba(72,88,180,0.14); }.wallet-package strong { color: var(--purple-deep); font-size: 1.05rem; direction: ltr; }.wallet-package small { color: var(--muted); font-size: 0.65rem; direction: ltr; }.wallet-package.is-featured { border-color: #d99a20; background: #fffaf0; }.wallet-package.is-featured > span { position: absolute; top: -8px; padding: 2px 6px; border-radius: 999px; color: #75500c; background: #ffe4a0; font-size: 0.56rem; font-weight: 800; }.wallet-package-card label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 0.72rem; }
.exchange-direction-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 16px; padding: 4px; border: 1px solid rgba(39,139,240,0.14); border-radius: 12px; background: rgba(39,139,240,0.06); }
.exchange-direction-tab { min-height: 40px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.exchange-direction-tab.is-active { color: #fff; background: #4f67d4; box-shadow: 0 7px 15px rgba(79,103,212,0.2); }
.wallet-confirmation { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; }
.wallet-confirmation[hidden] { display: none; }
.wallet-confirmation-backdrop { position: absolute; inset: 0; background: rgba(25,21,62,0.46); backdrop-filter: blur(4px); }
.wallet-confirmation-dialog { position: relative; width: min(100%, 390px); padding: 24px; border: 1px solid rgba(108,77,246,0.15); border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 24px 60px rgba(24,20,69,0.24); text-align: center; animation: wallet-confirmation-in 0.18s ease-out; }
.wallet-confirmation-dialog h2 { margin: 0 0 18px; font-size: 1.1rem; }
.wallet-confirmation-dialog p { margin: 10px 0 3px; color: var(--muted); font-size: 0.78rem; }
.wallet-confirmation-dialog > strong { display: block; direction: ltr; font-size: 1.08rem; }
.wallet-confirmation-close { position: absolute; top: 10px; inset-inline-start: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 1.4rem; cursor: pointer; }
.wallet-confirmation-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 22px; }
.wallet-confirmation-actions .pill-button { min-height: 42px; }
.transaction-amount:has(.is-negative) { display: grid; gap: 2px; }
.transaction-amount .is-positive { color: #138a5b; }
.transaction-amount .is-negative { color: #c4495e; }
@keyframes wallet-confirmation-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wallet-package-grid:has(.wallet-package:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }.wallet-rate-note, .wallet-withdraw-preview { margin: 0 0 12px; color: var(--muted); font-size: 0.7rem; line-height: 1.65; }.wallet-rate-note strong { color: #16815f; direction: ltr; }.wallet-submit-wide { width: 100%; }.wallet-withdraw-input { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #fff; direction: ltr; }.wallet-withdraw-input > span { padding: 0 6px; color: #c4495e; font-weight: 800; }.wallet-withdraw-input .input { min-width: 0; border: 0; direction: ltr; }.wallet-withdraw-input .action-chip { padding: 6px 8px; font-size: 0.66rem; white-space: nowrap; direction: rtl; }
.wallet-buy-notice { min-height: 19px; margin: -4px 0 12px; color: #19745b; font-size: 0.68rem; line-height: 1.5; }.wallet-buy-notice.is-insufficient { color: #a33e50; }.wallet-submit-wide:disabled { cursor: not-allowed; opacity: 0.54; filter: grayscale(0.25); }
.wallet-action h2 { margin: 0; font-size: 1.08rem; }
.wallet-action p { margin: 3px 0 0; font-size: 0.8rem; }
.wallet-action form { grid-column: 1 / -1; margin-top: 8px; }
.wallet-action label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.78rem; }
.wallet-input-row { display: flex; gap: 8px; }
.wallet-input-row .input { min-width: 0; direction: ltr; }
.wallet-input-row .pill-button { flex: 0 0 auto; }
.wallet-action-icon, .transaction-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 1.35rem; font-weight: 800; }
.deposit-icon, .transaction-icon.is-deposit { color: #138a5b; background: rgba(33, 181, 119, 0.13); }
.withdraw-icon, .transaction-icon.is-withdraw { color: #c4495e; background: rgba(211, 76, 100, 0.12); }
.wallet-history { margin-top: 18px; padding: 20px; }
.wallet-history .section-header { margin-bottom: 4px; }
.wallet-transactions { display: grid; }
.wallet-transaction { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.wallet-transaction:last-child { border-bottom: 0; }
.wallet-transaction small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.72rem; }
.transaction-amount { direction: ltr; font-size: 0.82rem; }
.transaction-amount.is-positive { color: #138a5b; }
.transaction-amount.is-negative { color: #c4495e; }
.dashboard-wallet-card { display: flex; align-items: center; gap: 12px; margin-top: 0; padding: 16px 20px; border: 1px solid rgba(217,154,32,0.28); border-radius: 16px; color: var(--text); text-decoration: none; background: linear-gradient(110deg, rgba(217,154,32,0.12), rgba(255,255,255,0.65)); }
.dashboard-wallet-card small, .dashboard-wallet-card strong { display: block; }
.dashboard-wallet-card small { color: var(--muted); font-size: 0.76rem; }
.dashboard-wallet-card strong { margin-top: 2px; font-size: 1rem; }
.dashboard-wallet-card b { direction: ltr; }
.daily-rewards-panel { display: grid; grid-template-columns: minmax(190px, 0.8fr) 1.5fr auto; align-items: center; gap: 18px; margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(217,154,32,0.2); background: linear-gradient(120deg, #fffaf0, rgba(255,255,255,0.86)); }
.daily-rewards-copy h2 { margin: 3px 0; font-size: 1.05rem; }
.daily-rewards-copy p { margin: 0; font-size: 0.75rem; }
.daily-rewards-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.daily-reward-day { display: flex; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid rgba(108,77,246,0.1); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,0.74); }
.daily-reward-day b { font-size: 0.58rem; font-weight: 700; }
.daily-reward-icon { color: #b47a11; font-size: 1.15rem; line-height: 1; }
.daily-reward-day small { font-size: 0.52rem; direction: ltr; }
.daily-reward-day.is-current { border-color: #d99a20; background: #fff3ce; box-shadow: 0 5px 12px rgba(217,154,32,0.12); }
.daily-reward-day.is-done { opacity: 0.55; }
.daily-claim-button { border: 0; border-radius: 9px; padding: 9px 13px; color: #fff; background: linear-gradient(135deg, #d69a23, #bb6e16); font-family: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.daily-claim-button:disabled { color: #987d42; background: #eee5cf; cursor: not-allowed; }
.wheel-shortcut { position: fixed; right: 18px; bottom: 118px; z-index: 60; display: grid; width: 76px; height: 76px; place-items: center; border: 0; border-radius: 0; color: inherit; background: transparent; box-shadow: none; text-decoration: none; touch-action: none; cursor: grab; animation: wheel-shortcut-in 0.45s ease-out both; }.wheel-shortcut:active, .wheel-shortcut[data-dragged="true"] { cursor: grabbing; }.wheel-shortcut-icon { display: block; width: 76px; height: 76px; border: 0; border-radius: 0; background: transparent; line-height: 0; }.wheel-shortcut-icon img { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: contain; background: transparent; }.wheel-shortcut-copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.wheel-shortcut-close { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,0.85); border-radius: 50%; color: #fff; background: #2b245c; font: inherit; font-size: 0.82rem; line-height: 1; cursor: pointer; }.wheel-shortcut-close:hover { background: #17143b; }@keyframes wheel-shortcut-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
.wheel-page { max-width: 760px; }.wheel-heading { margin-bottom: 20px; text-align: center; }.wheel-heading .page-title { margin: 3px 0; }.wheel-heading p { margin: 0; font-size: 0.82rem; }.wheel-card { position: relative; display: grid; justify-items: center; gap: 16px; padding: 30px 20px; overflow: hidden; background: linear-gradient(145deg, #fffaf0, #eef7f8); }.wheel-pointer { position: relative; z-index: 2; margin-bottom: -24px; color: #cf4d67; font-size: 1.8rem; text-shadow: 0 3px 5px rgba(23,20,59,0.12); }.wheel { position: relative; display: grid; width: min(78vw, 360px); aspect-ratio: 1; place-items: center; border: 12px solid #fff; border-radius: 50%; background: conic-gradient(#ee8990 0 12.5%, #f3bf5d 12.5% 25%, #74c6c0 25% 37.5%, #7396e2 37.5% 50%, #dc83bc 50% 62.5%, #e6a84f 62.5% 75%, #5bb2cf 75% 87.5%, #9d7bd8 87.5% 100%); box-shadow: 0 18px 38px rgba(38,28,100,0.18); transition: transform 2.6s cubic-bezier(0.12, 0.78, 0.12, 1); }.wheel.is-spinning { transform: rotate(var(--wheel-turn)); }.wheel span { position: absolute; display: grid; width: 45px; height: 45px; place-items: center; color: #fff; font-size: 1.55rem; font-weight: 800; text-shadow: 0 2px 4px rgba(23,20,59,0.25); }.wheel span:nth-of-type(1) { transform: translateY(-118px); }.wheel span:nth-of-type(2) { transform: translate(84px,-84px); }.wheel span:nth-of-type(3) { transform: translate(118px); }.wheel span:nth-of-type(4) { transform: translate(84px,84px); }.wheel span:nth-of-type(5) { transform: translateY(118px); font-size: 0.75rem; }.wheel span:nth-of-type(6) { transform: translate(-84px,84px); font-size: 0.7rem; }.wheel span:nth-of-type(7) { transform: translate(-118px); font-size: 0.68rem; }.wheel span:nth-of-type(8) { transform: translate(-84px,-84px); }.wheel-center { position: absolute; z-index: 1; display: grid; width: 66px; height: 66px; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #fff; background: #282260; font-size: 1.55rem; font-weight: 800; }.wheel-spin-button { width: min(100%, 260px); padding: 0.78rem 1rem; }.wheel-spin-button:disabled { cursor: not-allowed; opacity: 0.6; }.wheel-status { margin: 0; color: var(--muted); font-size: 0.76rem; }
.wallet-card-arrow { margin-right: auto; color: #b47a11; font-size: 1.2rem; }
.wallet-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 18px 0 16px; padding: 5px; border: 1px solid rgba(108,77,246,0.12); border-radius: 12px; background: rgba(255,255,255,0.66); }.wallet-tab { min-height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-family: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer; }.wallet-tab.is-active { color: #fff; background: #5b63c7; box-shadow: 0 5px 11px rgba(91,99,199,0.22); }.wallet-actions-grid { grid-template-columns: 1fr; gap: 0; }.wallet-package-card[hidden], .wallet-history[hidden] { display: none; }.wallet-history { margin-top: 0; }
.store-page { max-width: 1100px; padding-top: 18px; }
.store-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 22px 18px 16px 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(244,241,239,0.96), rgba(241,239,243,0.9));
  border: 1px solid rgba(124, 90, 174, 0.05);
  box-shadow: 0 16px 32px rgba(41, 28, 62, 0.05);
}
.store-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.store-hero-label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7d4ee8, #ba4ae3);
  box-shadow: 0 12px 20px rgba(122, 83, 223, 0.2);
}
.store-hero-copy .page-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
  color: #2c1a51;
}
.store-intro-copy {
  margin: 0;
  color: #5d5d73;
  font-size: 0.88rem;
  font-weight: 600;
}
.store-wallet-card-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
}
.store-balance-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  width: min(100%, 420px);
  min-height: 110px;
  box-sizing: border-box;
  padding: 18px 22px 16px 18px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #4c2ab7 0%, #6b48e6 35%, #b958d3 70%, #f59a73 100%);
  box-shadow: 0 20px 26px rgba(93, 63, 191, 0.23);
  overflow: hidden;
}
.store-balance-link::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
  transform: skewX(-18deg);
}
.store-balance-link .balance-label {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 700;
}
.store-balance-link strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2rem);
  direction: ltr;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.store-hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 260px;
}
.giftbox-image {
  display: block;
  width: min(72vw, 520px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 26px rgba(111, 73, 197, 0.18));
  transform: translateX(18px);
}
.gift-badge {
  position: absolute;
  right: 18px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e47d5, #c83ed7 55%, #ff8f65 100%);
  box-shadow: 0 18px 28px rgba(128, 74, 216, 0.25);
}
.gift-badge span {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.store-banner { display: flex; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 20px 24px; overflow: hidden; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #30205b 0%, #5a4bc7 25%, #b249d5 52%, #ff8e7f 100%); box-shadow: 0 20px 38px rgba(90, 75, 199, 0.25); transition: opacity 0.24s ease, transform 0.24s ease; border: 1px solid rgba(255,255,255,0.2); }

@media (max-width: 980px) {
  .store-hero-card { grid-template-columns: 1fr; }
  .store-wallet-card-wrap { justify-content: flex-start; }
  .store-balance-link { width: 100%; }
  .store-hero-art { min-height: 220px; }
  .giftbox-image { width: min(82vw, 420px); transform: translateX(0); }
}

@media (max-width: 640px) {
  .store-hero-card { padding: 18px 16px; border-radius: 22px; }
  .store-hero-copy .page-title { font-size: clamp(1.7rem, 9vw, 2.5rem); }
  .store-intro-copy { font-size: 0.8rem; }
  .store-balance-link { min-height: 102px; padding: 16px 18px; border-radius: 22px; }
  .store-balance-link .balance-label { font-size: 0.72rem; }
  .store-balance-link strong { font-size: clamp(1rem, 5vw, 1.6rem); }
  .giftbox-image { width: min(96vw, 320px); }
  .gift-badge { width: 118px; height: 118px; }
  .gift-badge span { width: 94px; height: 94px; font-size: 3rem; }
}
.store-banner[hidden] { display: none; }
.store-banner.is-leaving { opacity: 0; transform: translateY(-8px); }
.store-banner-kicker { display: inline-flex; margin-bottom: 8px; padding: 6px 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; color: #fff7da; background: rgba(255,255,255,0.1); font-size: 0.7rem; font-weight: 700; }
.store-banner h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.2; }
.store-banner p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.8rem; }
.store-banner-flower { filter: drop-shadow(0 10px 16px rgba(0,0,0,0.22)); font-size: 4.2rem; transform: rotate(-12deg); }
.welcome-offer-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.welcome-offer-action .store-banner-flower { margin: 0; line-height: 1; }
.welcome-claim-button { border: 1px solid rgba(255,255,255,0.72); border-radius: 999px; padding: 7px 12px; color: #3c2d91; background: linear-gradient(135deg, #fff7d7, #f1e7ff); font-family: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.welcome-claim-button:disabled { opacity: 0.7; cursor: wait; }
.store-promo-banner { background: linear-gradient(135deg, #2a1f5d 0%, #4a57c7 35%, #2ab7cf 100%); }
.promo-rate { display: grid; width: 76px; height: 76px; place-items: center; border: 2px solid rgba(255,255,255,0.35); border-radius: 50%; color: #fff4bd; background: rgba(255,255,255,0.08); font-size: 1.28rem; direction: ltr; }
.store-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.store-section-heading h2 { margin: 0; font-size: 1.25rem; }
.store-section-heading .muted { font-size: 0.76rem; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-product { display: flex; min-height: 290px; flex-direction: column; padding: 18px 16px 16px; border: 1px solid rgba(135, 102, 214, 0.12); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,245,255,0.85)); box-shadow: 0 18px 30px rgba(90, 75, 199, 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.store-product:hover { transform: translateY(-4px); box-shadow: 0 20px 35px rgba(90, 75, 199, 0.12); }
.product-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.product-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 10px; border-radius: 18px; font-size: 1.9rem; background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(239,233,255,0.8)); box-shadow: inset 0 1px 1px rgba(255,255,255,0.6); }
.owned-badge { padding: 5px 9px; border-radius: 999px; color: #2a7d86; background: rgba(35,127,131,0.1); font-size: 0.68rem; font-weight: 800; }
.store-product.rose .product-icon { background: linear-gradient(135deg, #fff0f4, #ffe1ea); }
.store-product.heart .product-icon { background: linear-gradient(135deg, #ffe9f0, #ffdfe9); }
.store-product.star .product-icon { background: linear-gradient(135deg, #fff7de, #ffe7b0); }
.store-product.crown .product-icon { background: linear-gradient(135deg, #fff4d9, #fbe7ad); }
.store-product.sparkles .product-icon { background: linear-gradient(135deg, #ebfbff, #d9faf0); }
.store-product.spotlight .product-icon { background: linear-gradient(135deg, #edf2ff, #dfe9ff); }
.product-copy h3 { margin: 0; font-size: 1.1rem; }
.product-copy p { min-height: 42px; margin: 6px 0 12px; color: #6b7285; font-size: 0.75rem; line-height: 1.7; }
.product-offer { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #1d7a73; background: rgba(35,127,131,0.08); font-size: 0.64rem; font-weight: 800; }
.product-purchase { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 12px 0 0; border-top: 1px solid rgba(38, 28, 100, 0.1); }
.product-purchase small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.63rem; }
.product-purchase del { display: block; margin-top: 2px; color: #8a93a7; font-size: 0.62rem; direction: ltr; }
.quantity-control { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid rgba(98, 72, 197, 0.15); border-radius: 12px; background: #fff; direction: ltr; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7); }
.quantity-control button { width: 32px; height: 32px; border: 0; color: #563dbd; background: transparent; font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.quantity-control button:hover { background: rgba(108,77,246,0.06); }
.quantity-control input { width: 34px; height: 32px; padding: 0; border: 0; border-right: 1px solid rgba(98, 72, 197, 0.1); border-left: 1px solid rgba(98, 72, 197, 0.1); color: var(--text); background: transparent; text-align: center; font-family: inherit; font-size: 0.78rem; font-weight: 800; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.buy-product-button { width: 100%; padding: 0.72rem 0.9rem; border-radius: 14px; font-size: 0.8rem; background: linear-gradient(135deg, #6e49d8 0%, #d655b8 52%, #ff8a65 100%); box-shadow: 0 14px 22px rgba(145, 94, 226, 0.24); }
.purchase-preview { display: block; min-height: 17px; margin: -4px 0 7px; color: #237f83; font-size: 0.64rem; font-weight: 800; }
.product-price { color: #8b5c1c; font-size: 0.84rem; direction: ltr; }
.store-product .pill-button:disabled { cursor: default; opacity: 0.72; }
.store-note { margin: 18px 0; text-align: center; font-size: 0.76rem; }

@media (max-width: 980px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .store-page .page-intro { flex-direction: column; align-items: stretch; }
  .store-banner { padding: 20px 18px; border-radius: 22px; }
  .store-banner h2 { font-size: 1.15rem; }
  .store-grid { grid-template-columns: 1fr; }
  .store-product { min-height: 240px; }
  .product-icon { width: 52px; height: 52px; }
  .store-balance-link { width: 100%; }
}.collection-page { max-width: 960px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.collection-heading .page-title { margin-bottom: 4px; }
.collection-count { display: flex; min-width: 132px; flex-direction: column; gap: 3px; padding: 13px 16px; border: 1px solid rgba(217,154,32,0.26); border-radius: 12px; background: #fffaf0; }
.collection-count span { color: var(--muted); font-size: 0.7rem; }
.collection-count strong { color: #a96f09; font-size: 1rem; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collection-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 22px rgba(38, 28, 100, 0.05); }
.collection-item::before { position: absolute; top: 0; right: 0; width: 4px; height: 100%; content: ''; background: #d19a36; }
.collection-item.heart::before { background: #e26d8d; }.collection-item.sparkles::before { background: #237f83; }.collection-item.spotlight::before { background: #5278c6; }
.collection-item-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 14px; background: #f3efff; font-size: 1.75rem; }.collection-item.rose .collection-item-icon { background: #fff0f3; }.collection-item.star .collection-item-icon, .collection-item.crown .collection-item-icon { background: #fff8df; }.collection-item.sparkles .collection-item-icon { background: #eaf8f5; }.collection-item.spotlight .collection-item-icon { background: #eaf0ff; }
.collection-label { color: #237f83; font-size: 0.68rem; font-weight: 800; }.collection-item-copy h2 { margin: 2px 0; font-size: 0.98rem; }.collection-item-copy p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.6; }
.collection-redeem { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 8px; }.collection-redeem-quantity { display: inline-flex; overflow: hidden; border: 1px solid rgba(35,127,131,0.24); border-radius: 7px; background: #fff; direction: ltr; }.collection-redeem-quantity button { width: 22px; height: 27px; border: 0; color: #17676b; background: transparent; font-size: 0.9rem; font-weight: 800; cursor: pointer; }.collection-redeem-quantity input { width: 27px; height: 27px; padding: 0; border: 0; border-right: 1px solid rgba(35,127,131,0.16); border-left: 1px solid rgba(35,127,131,0.16); text-align: center; font-family: inherit; font-size: 0.68rem; font-weight: 800; }.collection-redeem-quantity input::-webkit-inner-spin-button, .collection-redeem-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }.collection-redeem-all, .collection-redeem-submit { border: 1px solid rgba(35,127,131,0.25); border-radius: 7px; padding: 5px 8px; font-family: inherit; font-size: 0.62rem; font-weight: 800; cursor: pointer; }.collection-redeem-all { color: #17676b; background: #f2fbf8; }.collection-redeem-submit { color: #fff; background: #237f83; }.collection-redeem-submit.sale-button { background: linear-gradient(135deg, #ef4d6a, #d72e5e); border-color: rgba(215,46,94,0.35); }.collection-redeem-submit:disabled { opacity: 0.6; cursor: wait; }
.sale-confirm-modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, 0.42); z-index: 999; padding: 20px; }
.sale-confirm-card { width: min(360px, 100%); padding: 20px 18px 16px; border: 1px solid rgba(108,77,246,0.12); border-radius: 20px; background: rgba(255,255,255,0.96); box-shadow: 0 24px 60px rgba(31, 41, 55, 0.18); }
.sale-confirm-icon { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 12px; border-radius: 16px; background: rgba(239, 77, 106, 0.12); font-size: 1.7rem; }
.sale-confirm-card h3 { margin: 0 0 8px; text-align: center; font-size: 1.2rem; }
.sale-confirm-card p { margin: 0 0 14px; color: var(--muted); font-size: 0.8rem; line-height: 1.7; text-align: center; }
.sale-confirm-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 10px; border: 1px solid rgba(108,77,246,0.08); border-radius: 12px; background: #fff7fa; }
.sale-confirm-summary span { color: var(--muted); font-size: 0.72rem; }
.sale-confirm-summary strong { font-size: 0.8rem; color: var(--text); }
.sale-confirm-actions { display: flex; gap: 10px; margin-top: 16px; }
.sale-confirm-cancel, .sale-confirm-confirm { flex: 1; padding: 10px 12px; border: 0; border-radius: 12px; font-family: inherit; font-weight: 800; cursor: pointer; }
.sale-confirm-cancel { background: #f3f4f6; color: var(--text); }
.sale-confirm-confirm { background: linear-gradient(135deg, #ef4d6a, #d72e5e); color: #fff; }
.purchase-confirm-product { margin: -2px 0 14px !important; color: var(--text) !important; font-size: 1rem !important; font-weight: 800; }
.purchase-confirm-modal .sale-confirm-confirm { background: linear-gradient(135deg, #6e49d8, #d655b8); }
.purchase-confirm-modal button:disabled { cursor: wait; opacity: 0.62; }
.collection-quantity { display: flex; min-width: 48px; flex-direction: column; align-items: center; gap: 1px; padding: 6px; border-radius: 9px; background: #faf7ff; }.collection-quantity span { color: var(--muted); font-size: 0.62rem; }.collection-quantity strong { color: var(--purple-deep); font-size: 1rem; }
.collection-empty { grid-column: 1 / -1; padding: 54px 20px; border: 1px dashed rgba(38, 28, 100, 0.2); border-radius: 14px; background: #fff; text-align: center; }.collection-empty > span { display: block; margin-bottom: 8px; font-size: 2.5rem; }.collection-empty h2 { margin: 0 0 5px; font-size: 1.1rem; }.collection-empty p { max-width: 420px; margin: 0 auto 16px; color: var(--muted); font-size: 0.8rem; }
.share-result { margin-top: 18px; padding: 18px 20px; }
.share-result h2 { margin: 4px 0 12px; font-size: 1.15rem; }
.share-result-row { display: flex; gap: 8px; }
.share-result-row .input { min-width: 0; direction: ltr; font-size: 0.78rem; }
.share-result [data-open-share-result] { display: inline-flex; margin-top: 10px; }
.social-share-panel { margin-top: 22px; padding: 18px 20px; }
.social-share-panel h2 { margin: 0 0 3px; font-size: 1.15rem; }
.social-share-panel p { margin: 0 0 12px; font-size: 0.8rem; }
.social-share-buttons { display: flex; gap: 8px; }
.social-share-buttons a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 0.96rem; font-weight: 800; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease; }
.social-share-buttons a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.social-share-buttons a:nth-child(1) { background: #1877f2; }
.social-share-buttons a:nth-child(2) { background: #111827; }
.social-share-buttons a:nth-child(3) { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.social-share-buttons a:nth-child(4) { background: #f6c945; color: #111827; }
.chat-page-shell { min-height: calc(100vh - 120px); }
.chat-page-wrap { max-width: 760px; }
.chat-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.78); box-shadow: var(--shadow-soft); }
body.dark-mode .chat-card { background: rgba(18,21,40,0.92); }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: rgba(108,77,246,0.05); }
.chat-back { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--purple); font-size: 1.5rem; }
.chat-person-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(108,77,246,0.3); border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-weight: 800; }
.chat-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-person { display: grid; gap: 2px; }
.chat-person strong { font-size: 0.95rem; }
.chat-person span { color: var(--success); font-size: 0.72rem; }
.chat-messages { display: flex; flex-direction: column; gap: 9px; min-height: 420px; max-height: 58vh; overflow-y: auto; padding: 20px 18px; background: rgba(108,77,246,0.025); }
.chat-empty { margin: auto; color: var(--text-muted); font-size: 0.84rem; }
.typing-indicator { display: none; align-items: center; align-self: flex-end; gap: 4px; width: fit-content; padding: 9px 11px; border-radius: 14px 14px 4px 14px; background: rgba(236,72,153,0.1); }
.typing-indicator.is-visible { display: flex; }
.typing-indicator i { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); animation: typingBounce 0.85s ease-in-out infinite; }
.typing-indicator i:nth-child(2) { animation-delay: 0.14s; }
.typing-indicator i:nth-child(3) { animation-delay: 0.28s; }
@keyframes typingBounce { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-bubble { width: fit-content; max-width: min(78%, 480px); padding: 9px 12px; border-radius: 14px; box-shadow: 0 4px 12px rgba(23,20,59,0.06); }
.chat-bubble p { margin: 0; overflow-wrap: anywhere; font-size: 0.86rem; line-height: 1.65; }
.chat-bubble time { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.64rem; direction: ltr; text-align: left; }
.chat-bubble.mine { align-self: flex-end; border-bottom-left-radius: 4px; background: rgba(108,77,246,0.13); }
.chat-bubble.theirs { align-self: flex-start; border-bottom-right-radius: 4px; background: rgba(236,72,153,0.1); }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-composer textarea { min-height: 42px; max-height: 120px; flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; outline: 0; background: rgba(255,255,255,0.72); color: var(--text); font-size: 0.84rem; }
body.dark-mode .chat-composer textarea { background: rgba(255,255,255,0.05); color: var(--text-dark); }
.chat-send { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; cursor: pointer; font-size: 1.1rem; }
.chat-send:disabled { opacity: 0.65; cursor: wait; }
.public-account-card .public-profile-intro { width: min(100%, 520px); margin: 20px 0 0; }
.public-message-form { width: min(100%, 520px); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.public-message-form .textarea { min-height: 110px; padding: 0.75rem 0.9rem; font-size: 0.88rem; }
.public-message-form .pill-button { width: min(100%, 240px); margin-inline: auto; padding: 0.7rem 1rem; font-size: 0.82rem; }
.public-account-card .public-profile-footer { width: min(100%, 520px); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}
.brand-logo {
  display: block;
  width: clamp(160px, 18vw, 220px);
  height: auto;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(108, 77, 246, 0.18));
}
.brand-word {
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  border: 3px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: 0.25s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(108,77,246,0.08);
  color: var(--purple-deep);
}
body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
  background: rgba(142,124,255,0.16);
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  order: 1;
}

.hero {
  padding: 72px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}
.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.pill-button:hover { transform: translateY(-1px); }
.pill-button.primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.pill-button.secondary {
  background: rgba(108,77,246,0.08);
  color: var(--purple-deep);
}
.pill-button.ghost {
  background: rgba(255,255,255,0.64);
  color: var(--text);
  border: 1px solid rgba(108,77,246,0.12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(108,77,246,0.12), rgba(236,72,153,0.08), rgba(59,130,246,0.08));
  border: 1px solid rgba(108,77,246,0.12);
  box-shadow: var(--shadow-soft);
  min-height: 520px;
}
.ghost-card {
  position: absolute;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.54);
  box-shadow: var(--shadow-soft);
}
.ghost-card.card-a { top: 32px; left: 36px; width: 220px; padding: 18px; }
.ghost-card.card-b { bottom: 34px; right: 32px; width: 250px; padding: 18px; }
.ghost-card.card-c { top: 150px; left: 150px; width: 220px; padding: 18px; }

.message-preview {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
  border-radius: 24px;
  border: 1px solid rgba(108,77,246,0.09);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section {
  padding: 42px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stat-card, .feature-card, .share-card, .panel, .glass-card, .message-card, .settings-box {
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 24px;
}
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(108,77,246,0.12), rgba(236,72,153,0.12));
}

.soft-divider {
  width: 100%;
  height: 1px;
  background: rgba(108,77,246,0.08);
  margin: 12px 0;
}

.page-shell {
  padding: 60px 0 90px;
}

.admin-page-body {
  background: linear-gradient(180deg, #f7f4ff 0%, #f2f5ff 100%);
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(108,77,246,0.12);
  backdrop-filter: blur(14px);
}

.admin-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.admin-nav a.active,
.admin-nav a:hover {
  color: var(--purple-deep);
  background: rgba(108,77,246,0.08);
}

.admin-shell {
  padding: 34px 0 80px;
}

.admin-page-header {
  margin-bottom: 22px;
}

.admin-page-header .page-title {
  margin: 6px 0 0;
}

.eyebrow {
  margin: 0;
  color: var(--purple-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.admin-stat-card,
.admin-panel,
.admin-item {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(108,77,246,0.1);
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(56, 39, 130, 0.06);
}

.admin-stat-card {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-stat-card span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-stat-card strong {
  font-size: clamp(1.3rem, 2vw, 2rem);
  color: var(--text);
}

.admin-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.admin-panel {
  padding: 20px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-item-main strong {
  font-size: 0.95rem;
  line-height: 1.5;
}

.admin-item-main small,
.admin-item-meta small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.admin-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(39, 174, 96, 0.12);
  color: #1d7a43;
}

.admin-chip.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b76d00;
}

.admin-chip.success {
  background: rgba(34, 197, 94, 0.12);
  color: #167b42;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 16px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(108,77,246,0.08);
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-cell strong,
.admin-user-cell small {
  display: block;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.empty-state {
  padding: 18px 14px;
  color: var(--text-muted);
  background: rgba(108,77,246,0.04);
  border: 1px dashed rgba(108,77,246,0.15);
  border-radius: 16px;
  text-align: center;
}

.admin-auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(157, 120, 255, 0.14), transparent 38%), linear-gradient(180deg, #f7f4ff 0%, #f1f5ff 100%);
}

.admin-auth-shell {
  width: min(100%, 480px);
  padding: 24px;
}

.admin-auth-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(108,77,246,0.12);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(38, 25, 86, 0.12);
  padding: 28px 22px;
}

.admin-auth-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}

.admin-auth-header h1 {
  margin: 4px 0 0;
  font-size: 1.8rem;
}

.admin-auth-form {
  display: grid;
  gap: 16px;
}

.admin-auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.page-hero {
  padding: 24px 0 18px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}
.form-panel {
  padding: 26px;
}
.form-grid {
  display: grid;
  gap: 16px;
}
.input, .textarea, .select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(108,77,246,0.12);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(108,77,246,0.48);
  box-shadow: 0 0 0 4px rgba(108,77,246,0.08);
}

.inline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.muted { color: var(--text-muted); }

.notice {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(108,77,246,0.08));
  border: 1px solid rgba(59,130,246,0.15);
}
.auth-status {
  padding: 12px 14px;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px;
  background: rgba(59,130,246,0.08);
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 700;
}
.auth-status[data-type="success"] { border-color: rgba(16,185,129,0.24); background: rgba(16,185,129,0.1); color: #047857; }
.auth-status[data-type="error"] { border-color: rgba(239,68,68,0.24); background: rgba(239,68,68,0.08); color: #b91c1c; }
.username-status[data-type="success"] { border-color: rgba(16,185,129,0.24); background: rgba(16,185,129,0.1); color: #047857; }
.username-status[data-type="error"] { border-color: rgba(239,68,68,0.24); background: rgba(239,68,68,0.08); color: #b91c1c; }
.field-status { font-size: 0.82rem; }
.field-status[data-type="success"] { border-color: rgba(16,185,129,0.24); background: rgba(16,185,129,0.1); color: #047857; }
.field-status[data-type="error"] { border-color: rgba(239,68,68,0.24); background: rgba(239,68,68,0.08); color: #b91c1c; }
.password-strength { display: grid; gap: 6px; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; }
.strength-track { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(108,77,246,0.1); }
.strength-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--danger); transition: width 0.25s ease, background 0.25s ease; }
.strength-track span[data-level="متوسطة"] { background: var(--warning); }
.strength-track span[data-level="قوية"] { background: var(--success); }
body.dark-mode .auth-status { color: #93c5fd; }
body.dark-mode .auth-status[data-type="success"] { color: #6ee7b7; }
body.dark-mode .auth-status[data-type="error"] { color: #fca5a5; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.86rem 1rem;
  border: 1px solid rgba(23,20,59,0.12);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.google-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.google-mark { color: #4285f4; font-family: Arial, sans-serif; font-size: 1.15rem; font-weight: 900; }
body.dark-mode .google-button { background: rgba(255,255,255,0.96); color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(40, 33, 72, 0.88);
  color: rgba(245, 242, 255, 0.9);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 30;
}
.toast.show { opacity: 1; }
.toast.is-success {
  border: none;
  color: #2c554d;
  background: rgba(221, 250, 241, 0.9);
  box-shadow: none;
}
.toast.is-error {
  border: none;
  color: #7a2d3c;
  background: rgba(255, 232, 237, 0.92);
  box-shadow: none;
}
.gift-arrival-chip { position: fixed; left: 18px; bottom: 84px; z-index: 50; display: inline-flex; align-items: center; gap: 7px; padding: 8px 8px 8px 13px; border: 1px solid rgba(217,154,32,0.35); border-radius: 10px; color: #5d450d; background: #fff9e9; box-shadow: 0 14px 30px rgba(23,20,59,0.18); font-size: 0.76rem; text-decoration: none; animation: gift-arrival 0.35s ease-out both; }.gift-arrival-chip span { font-size: 1.1rem; }.gift-arrival-chip button { width: 22px; height: 22px; border: 0; border-radius: 6px; color: #806515; background: rgba(217,154,32,0.12); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }@keyframes gift-arrival { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.coin-arrival-chip { position: fixed; left: 18px; bottom: 132px; z-index: 50; display: inline-flex; align-items: center; gap: 7px; padding: 8px 8px 8px 13px; border: 1px solid rgba(217,154,32,0.35); border-radius: 10px; color: #5d450d; background: #fff9e9; box-shadow: 0 14px 30px rgba(23,20,59,0.18); font-size: 0.76rem; animation: gift-arrival 0.35s ease-out both; }.coin-arrival-image { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; }.coin-arrival-chip button { width: 22px; height: 22px; border: 0; border-radius: 6px; color: #806515; background: rgba(217,154,32,0.12); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }

.profile-cover {
  position: relative;
  min-height: 180px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(108,77,246,0.92), rgba(236,72,153,0.8), rgba(59,130,246,0.8));
  overflow: hidden;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #e5e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-deep);
  border: 4px solid rgba(255,255,255,0.7);
  margin-top: 0;
  margin-right: 24px;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.public-profile-layout { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; }
.public-profile-panel { padding: 28px; }
.public-profile-cover { min-height: 150px; display: grid; place-items: center; margin: -28px -28px 18px; padding: 20px; border-radius: 22px 22px 0 0; background: linear-gradient(135deg, rgba(108,77,246,0.18), rgba(236,72,153,0.14)); background-size: cover; background-position: center; }
.public-profile-cover .profile-avatar { margin: 42px auto -48px; }
.public-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 60px 0 18px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: rgba(108,77,246,0.04); text-align: center; }
.public-profile-stats div { display: grid; gap: 2px; }
.public-profile-stats strong { font-size: 1.05rem; color: var(--text); }
.public-profile-stats small { color: var(--text-muted); font-size: 0.72rem; }
body.dark-mode .public-profile-stats strong { color: var(--text-dark); }
.public-profile-identity { padding-top: 12px; text-align: center; }
.public-profile-identity .page-title { font-size: clamp(2rem, 5vw, 3rem); }
.public-avatar-centered { margin: 0 auto; }
.public-profile-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(108,77,246,0.06); }
.public-profile-intro p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.public-profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.8rem; }
.public-profile-footer .action-chip { color: var(--purple); }
.public-message-status { margin-top: 4px; }

.list {
  display: grid;
  gap: 14px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(108,77,246,0.08);
}

.password-change-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 40, 0.45);
}

.password-change-dialog {
  width: min(100%, 440px);
  padding: 20px 18px 18px;
  border: 1px solid rgba(108,77,246,0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(28, 21, 64, 0.22);
}

.password-change-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.password-change-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.password-close-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(108,77,246,0.08);
  color: var(--purple-deep);
  font-size: 1.5rem;
  cursor: pointer;
}

.password-change-form {
  display: grid;
  gap: 12px;
}

.password-change-form label {
  display: grid;
  gap: 6px;
}

.password-change-form span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.password-change-form .input {
  width: 100%;
}

.password-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.password-form-actions .pill-button,
.password-form-actions .action-chip {
  min-width: 120px;
}

.delete-account-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 40, 0.52);
}

.delete-account-dialog {
  width: min(100%, 430px);
  padding: 20px 18px 18px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(28, 21, 64, 0.22);
}

.delete-account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.delete-account-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  color: #d62d54;
  font-size: 1.5rem;
  font-weight: 900;
}

.delete-account-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.delete-account-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.delete-account-body {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.04);
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.delete-account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.delete-account-actions .pill-button,
.delete-account-actions .action-chip {
  min-width: 120px;
}

.pill-button.danger {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(135deg, #ef4444, #d62d54);
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(108,77,246,0.08);
  color: var(--purple-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .card-grid[data-messages-list] {
    width: min(100%, 760px);
    margin-inline-start: auto;
    justify-items: end;
  }
  .card-grid[data-messages-list] > .message-card,
  .card-grid[data-messages-list] > [data-message-id] {
    width: min(100%, 680px);
    margin-inline-start: auto;
    justify-self: end;
  }
}

.dashboard-heading { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; text-align: center; }
.dashboard-heading > div { display: grid; justify-items: center; }
.dashboard-heading .pill-button { width: auto; min-width: 190px; margin-top: 4px; }
.share-new-button { width: auto; min-width: 146px; padding: 0.68rem 1rem; font-size: 0.82rem; }
.dashboard-heading .page-title { margin-bottom: 8px; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.3; letter-spacing: -0.02em; }
.dashboard-subtitle { margin: -4px 0 0; font-size: 0.96rem; line-height: 1.8; }
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  margin-bottom: 22px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(120deg, #211b58 0%, #4b35b5 54%, #e44a91 100%);
  box-shadow: 0 22px 46px rgba(60, 44, 152, 0.24);
  overflow: hidden;
}
.dashboard-hero h2 { margin: 16px 0 8px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.35; }
.dashboard-hero p { color: rgba(255,255,255,0.76); margin: 0; font-size: 0.96rem; line-height: 1.8; }
.dashboard-hero .tag { background: rgba(255,255,255,0.14); color: #fff; }
.share-box {
  padding: 20px;
  background: rgba(10, 8, 35, 0.25);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
}
.share-box label { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.72); }
.link-row { display: flex; gap: 8px; }
.link-row .input { min-width: 0; background: rgba(255,255,255,0.96); color: var(--text); padding-block: 0.75rem; }
.link-row .pill-button { flex: 0 0 auto; background: #fff; color: var(--purple-deep); }
.share-actions { display: flex; gap: 8px; margin-top: 12px; }
.share-actions .action-chip { flex: 1; color: #fff; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); text-align: center; }
.social-share-picker { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }.social-share-picker[hidden] { display: none; }.social-share-picker button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 9px; color: #fff; font-family: Arial, sans-serif; font-size: 0.82rem; font-weight: 900; cursor: pointer; transition: transform 0.18s ease, filter 0.18s ease; }.social-share-picker button:hover { transform: translateY(-2px); filter: brightness(1.08); }.social-share-picker button:nth-child(1) { background: #1877f2; }.social-share-picker button:nth-child(2) { background: #0084ff; }.social-share-picker button:nth-child(3) { background: #111827; }.social-share-picker button:nth-child(4) { background: #ffd636; color: #111827; }.social-share-picker button:nth-child(5) { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.dashboard-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.dashboard-messages-card { color: inherit; text-decoration: none; }.dashboard-messages-card .stat-label { position: relative; }.dashboard-stat-arrow { margin-right: auto; color: var(--purple); font-size: 1.2rem; font-weight: 800; }.dashboard-messages-card:hover { transform: translateY(-3px); }
.dashboard-stats .feature-card { padding: 20px 22px; }
.stat-label { display: flex; align-items: center; gap: 12px; }
.stat-label .feature-icon { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 14px; }
.stat-card h2 { margin: 12px 0 0; font-size: 1.75rem; line-height: 1.35; }
.dashboard-columns { display: grid; grid-template-columns: 1fr; gap: 22px; }
.dashboard-columns > * { min-width: 0; }
.dashboard-panel { padding: 24px; }
.dashboard-panel .section-header { margin-bottom: 12px; }
.dashboard-panel .section-title { font-size: 1.35rem; line-height: 1.45; margin-top: 4px; }
.eyebrow { color: var(--purple); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; }
.dashboard-message-list { display: grid; gap: 10px; min-width: 0; overflow: hidden; }
.recent-message { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; padding: 12px; border-bottom: 1px solid rgba(108,77,246,0.08); overflow: hidden; }
.recent-message:last-child { border-bottom: 0; }
.recent-message > div { flex: 1; min-width: 0; }
.recent-message p { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.quick-panel { display: grid; align-content: start; gap: 10px; }
.quick-panel .pill-button { width: 100%; margin: 8px 0; }
.quick-link { margin-top: 4px; }
.message-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.message-filters .action-chip { min-height: 28px; padding: 5px 10px; border-radius: 9px; font-size: 0.74rem; }
.message-filters .action-chip.active { background: var(--purple); color: #fff; }
.message-card[hidden] { display: none; }
.message-card {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(108,77,246,0.10);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(23,20,59,0.04);
}
.message-card.is-collapsed {
  width: min(calc(100% - 10px), 680px);
  justify-self: end;
  margin: 0;
  padding-block: 10px;
  background: #fff;
  border: 1px solid rgba(108,77,246,0.10);
  border-radius: 16px;
}.message-card.is-collapsed .message-body, .message-card.is-collapsed .message-options { display: none; }.message-card.is-collapsed .message-head { cursor: pointer; }.message-card.is-expanded { width: 100%; justify-self: stretch; }

@media (min-width: 768px) {
  .message-card.is-collapsed {
    margin-inline-start: auto;
    justify-self: end;
  }
}
.message-card .message-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.message-card .message-body {
  margin: 10px 0 6px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}
.message-card .muted {
  color: var(--text-muted);
  font-size: 0.71rem;
  line-height: 1.5;
}
.message-unread-dot { display: block; width: 9px; height: 9px; flex: 0 0 9px; margin-inline-start: 6px; border-radius: 50%; background: #d33f59; box-shadow: 0 0 0 3px rgba(211,63,89,0.1); }
.message-card.is-locked .message-head { cursor: not-allowed; }.message-card.is-locked .message-options { display: none; }
.locked-message-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; padding: 8px 10px; border: 1px solid rgba(211,63,89,0.16); border-radius: 9px; background: #fff7f8; }.locked-message-toggle { display: inline-flex; align-items: center; gap: 6px; color: #9f3c4e; font-size: 0.72rem; font-weight: 700; }.locked-message-toggle input { accent-color: #d33f59; }.locked-message-options .select { width: auto; min-width: 145px; padding: 6px 8px; font-size: 0.68rem; }.locked-message-options .select:disabled { opacity: 0.5; }.message-card.is-locked .message-body { display: grid; min-height: 54px; place-items: center; gap: 4px; color: #b33d52; background: #fff4f5; border-radius: 8px; font-size: 0.76rem; }.message-card.is-locked .message-body small { color: #a77079; font-size: 0.64rem; }.locked-message-label { font-weight: 800; }
.message-close-button { display: none; width: 24px; height: 24px; margin-inline-start: 6px; border: 0; border-radius: 7px; color: var(--muted); background: rgba(38,28,100,0.06); font: inherit; font-size: 0.9rem; line-height: 1; cursor: pointer; }.message-card.is-expanded .message-close-button { display: grid; place-items: center; }.message-card.is-expanded .message-head { cursor: default; }
body.dark-mode .message-card { background: rgba(18,21,40,0.8); border: 1px solid rgba(255,255,255,0.06); box-shadow: none; }
.chat-inbox { margin-top: 22px; padding: 0; background: transparent; border: 0; box-shadow: none; }
body.dark-mode .chat-inbox { background: transparent; border: 0; box-shadow: none; }
.chat-inbox .section-header { margin-bottom: 12px; }
.chat-inbox .section-title { font-size: 1.3rem; }
.chat-inbox-list { display: grid; gap: 6px; }
.chat-inbox-item { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.chat-inbox-item:hover { background: rgba(108,77,246,0.05); }
.chat-inbox-avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-size: 0.8rem; font-weight: 800; }
.chat-inbox-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-inbox-item > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 2px; }
.chat-inbox-item strong, .chat-inbox-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-inbox-item strong { color: var(--text); font-size: 0.82rem; }
.chat-inbox-item small { color: var(--text-muted); font-size: 0.74rem; }
.chat-inbox-item time { color: var(--text-muted); font-size: 0.66rem; }
.chat-unread-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
body.dark-mode .chat-inbox-item strong { color: var(--text-dark); }
.messages-page-title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }

.messages-page-shell {
  display: flex;
  justify-content: center;
  padding: 26px 0 18px;
}

.messages-hero-card {
  width: min(320px, calc(100vw - 42px));
  padding: 20px 18px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, #6b4de7 0%, #8a61f4 40%, #a86ce9 100%);
  box-shadow: 0 22px 42px rgba(105, 84, 224, 0.26);
  text-align: center;
  color: #fff;
}

.messages-card-title {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 800;
  color: #fff;
}

.messages-hero-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #6b4de7;
  font-size: 2rem;
  box-shadow: 0 10px 24px rgba(79, 53, 185, 0.25);
}

.messages-card-subtitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
}

.messages-card-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

.messages-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 42px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #5a38d8;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(56, 37, 148, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.messages-filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(56, 37, 148, 0.18);
}

.messages-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(108, 77, 246, 0.08);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.messages-show-more:hover {
  background: rgba(108, 77, 246, 0.12);
  transform: translateY(-1px);
}

.message-avatar { width: 30px; height: 30px; font-size: 0.82rem; border-width: 2px; }
.message-options { position: relative; display: flex; justify-content: flex-start; margin-top: 4px; }
.message-options-toggle { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(108,77,246,0.28); border-radius: 9px; background: rgba(108,77,246,0.08); color: var(--purple); font-size: 0; cursor: pointer; }
.message-options-toggle::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 6px 0 currentColor, 12px 0 currentColor; transform: translateX(-6px); }
.message-options .message-actions {
  position: absolute;
  top: 36px;
  left: 0;
  z-index: 50;
  display: grid;
  gap: 3px;
  width: 132px;
  padding: 6px;
  border: 1px solid rgba(108,77,246,0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23,20,59,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.97);
  transform-origin: top left;
  transition: 0.18s ease;
}
.message-options.is-open .message-actions { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.message-options .action-chip { width: 100%; min-height: 28px; padding: 5px 8px; border: 0; border-radius: 8px; font-size: 0.72rem; text-align: right; }
.message-options .action-chip:hover { background: rgba(108,77,246,0.08); color: var(--purple); }
body.dark-mode .message-options .message-actions { background: #121528; }
.share-creator, .shared-list-panel { margin-top: 22px; padding: 24px; }
.share-creator .section-title { font-size: 1.5rem; line-height: 1.35; }
.share-limit { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 10px; background: rgba(59,130,246,0.08); color: var(--blue); font-size: 0.76rem; font-weight: 700; }
.share-creator-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.share-message-preview {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 26px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(33,27,88,0.76), rgba(93,59,209,0.7)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=85') center/cover;
  box-shadow: 0 18px 32px rgba(60,44,152,0.2);
  transition: background 0.25s ease;
}
.share-message-preview .share-preview-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
}
.share-message-preview.background-one { background: linear-gradient(145deg, rgba(33,27,88,0.76), rgba(93,59,209,0.7)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=85') center/cover; }
.share-message-preview.background-two { background: linear-gradient(145deg, rgba(9,72,86,0.78), rgba(14,116,144,0.7)), url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1200&q=85') center/cover; }
.share-message-preview.background-three { background: linear-gradient(145deg, rgba(120,53,15,0.76), rgba(190,84,20,0.72)), url('https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1200&q=85') center/cover; }
.share-message-preview.background-four { background: linear-gradient(145deg, rgba(30,58,138,0.78), rgba(37,99,235,0.7)), url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1200&q=85') center/cover; }
.share-message-preview::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(9,10,22,0.18), rgba(236,72,153,0.3)); }
.share-message-preview p { width: 100%; max-width: 300px; margin: 0; padding-inline: 8px; font-size: 0.84rem; line-height: 1.75; font-weight: 800; overflow-wrap: anywhere; text-align: center; }
.share-message-preview small { color: rgba(255,255,255,0.7); }
.share-preview-image { width: auto; height: auto; max-width: 100%; max-height: 180px; object-fit: contain; border-radius: 12px; border: 2px solid rgba(255,255,255,0.72); background: transparent; }
.share-preview-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 6px 0;
}
.share-preview-image-wrapper[hidden] {
  display: none !important;
}
.remove-share-image {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 15;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(23, 20, 59, 0.82);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, background 0.18s ease;
}
.remove-share-image:hover {
  transform: scale(1.12);
  background: #ef4444;
}
.share-message-preview.image-preview-mode,
.shared-item .share-message-preview.image-preview-mode {
  background: #ffffff !important;
  background-image: none !important;
  color: #17143b !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.share-message-preview.image-preview-mode .share-author-info strong {
  color: #17143b !important;
}
.share-message-preview.image-preview-mode .share-author-info .share-time {
  color: #64748b !important;
}
.share-message-preview.image-preview-mode .share-avatar {
  border-color: rgba(108, 77, 246, 0.2);
  background: rgba(108, 77, 246, 0.08);
  color: var(--purple-deep);
}
.share-message-preview.image-preview-mode small {
  color: #64748b !important;
}
.share-message-preview.image-preview-mode::before,
.shared-item .share-message-preview.image-preview-mode::before {
  display: none !important;
}
.share-message-preview.image-preview-mode .share-preview-image.png-image { border-color: transparent; }
.share-preview-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,0.6); border-radius: 50%; font-weight: 900; }
.share-author { display: flex; align-items: center; gap: 10px; }
.share-author-info { display: flex; flex-direction: column; align-items: flex-start; text-align: right; line-height: 1.25; }
.share-author-info strong { font-size: 0.88rem; font-weight: 800; color: inherit; }
.share-author-info .share-time { font-size: 0.72rem; color: rgba(255,255,255,0.78); margin-top: 2px; }
.share-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,0.65); border-radius: 50%; background: rgba(255,255,255,0.2); font-weight: 900; }
.share-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-editor { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; }
.profile-editor > div { display: grid; flex: 1; }
.profile-editor small { font-size: 0.72rem; }
.profile-upload { color: var(--purple); font-size: 0.78rem; }
.settings-quick-nav {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 12;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  width: min(90vw, 980px);
  max-width: 980px;
  padding: 18px 26px max(18px, env(safe-area-inset-bottom));
  border-radius: 34px 34px 0 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 97, 182, 0.08);
  box-shadow: 0 16px 34px rgba(120, 88, 204, 0.15), 0 0 0 8px rgba(135, 112, 222, 0.035);
  transform: translateX(-50%);
}
.settings-quick-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 94px;
  color: #5a3bb0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.settings-quick-link:hover { transform: translateY(-2px); }
.settings-quick-link svg,
.settings-quick-link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.settings-quick-link svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-quick-link span {
  color: #5a3bb0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.settings-quick-link.is-primary {
  position: relative;
  z-index: 1;
}
.settings-quick-link.is-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.03));
  box-shadow: 0 18px 28px rgba(123, 82, 216, 0.2), inset 0 0 0 1px rgba(255,255,255,0.12);
  transform: translate(-50%, -50%);
  z-index: -2;
}
.settings-quick-link.is-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5d2fd1 0%, #7d3fe8 18%, #b236d5 46%, #e74495 72%, #ff7d62 100%);
  box-shadow: inset 0 8px 16px rgba(255,255,255,0.26), inset 0 -14px 18px rgba(62,12,118,0.18), 0 16px 24px rgba(154,68,206,0.22);
  transform: translate(-50%, -50%);
  z-index: -1;
}
.settings-quick-link.is-primary img {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 12px rgba(84, 53, 188, 0.18));
}
.settings-quick-link.is-primary span {
  position: relative;
  z-index: 1;
  color: #5a3bb0;
  font-size: 1rem;
}
.account-photo-editor { display: flex; align-items: center; gap: 14px; padding: 14px; margin: 18px 0 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(108,77,246,0.04); }
.account-photo-editor > div:nth-child(2) { flex: 1; }
.account-photo-editor p { margin: 2px 0 0; font-size: 0.78rem; }

@media (min-width: 981px) {
  .settings-quick-nav {
    bottom: 0;
    border-radius: 34px 34px 0 0;
    transform: translateX(-50%);
  }
  .settings-quick-link span {
    font-size: 0.92rem;
  }
}

@media (max-width: 980px) {
  .settings-quick-nav {
    display: grid;
    width: min(94vw, 760px);
    gap: 8px;
    padding: 14px 12px 10px;
  }
  .settings-quick-link { min-height: 88px; }
  .settings-quick-link svg, .settings-quick-link img { width: 34px; height: 34px; }
  .settings-quick-link span { font-size: 0.8rem; }
  .settings-quick-link.is-primary::before { width: 104px; height: 104px; }
  .settings-quick-link.is-primary::after { width: 82px; height: 82px; }
  .settings-quick-link.is-primary img { width: 38px; height: 38px; }
}

@media (max-width: 640px) {
  .settings-quick-nav {
    display: grid;
    left: 50%;
    bottom: 0;
    width: min(96vw, 520px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 12px 8px max(12px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    transform: translateX(-50%);
  }
  .settings-quick-link {
    min-height: 76px;
    gap: 4px;
  }
  .settings-quick-link svg, .settings-quick-link img { width: 28px; height: 28px; }
  .settings-quick-link span {
    font-size: 0.62rem;
    white-space: nowrap;
  }
  .settings-quick-link.is-primary::before { width: 90px; height: 90px; }
  .settings-quick-link.is-primary::after { width: 70px; height: 70px; }
  .settings-quick-link.is-primary img { width: 30px; height: 30px; }
  .page-shell { padding-bottom: 110px; }
}

@media (min-width: 641px) {
  .settings-quick-nav {
    display: none;
  }
  .page-shell { padding-bottom: 0; }
}

@media (min-width: 641px) {
  .settings-quick-link span {
    display: inline;
  }
}

@media (max-width: 640px) {
  .settings-quick-link span {
    display: none;
  }
  .settings-quick-link.is-primary span {
    display: none;
  }
}
.account-photo { width: 66px; height: 66px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; border: 3px solid rgba(255,255,255,0.9); border-radius: 50%; color: transparent; font-size: 0; font-weight: 900; background: #17143b url('../assets/logo/favicon.svg') center/cover no-repeat; box-shadow: 0 8px 18px rgba(23,20,59,0.16); }
.account-photo img { width: 100%; height: 100%; object-fit: cover; }
.account-cover-editor { display: flex; align-items: center; gap: 14px; padding: 14px; margin: 18px 0 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(108,77,246,0.04); }
.account-cover-editor > div:nth-child(2) { flex: 1; }
.account-cover-editor p { margin: 2px 0 0; font-size: 0.78rem; }
.cover-preview { width: 96px; height: 58px; flex: 0 0 auto; border: 1px solid rgba(108,77,246,0.14); border-radius: 12px; background: linear-gradient(145deg, rgba(23,20,59,0.38), rgba(108,77,246,0.18)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=600&q=80') center/cover; box-shadow: 0 7px 16px rgba(23,20,59,0.1); }
.share-message-form { display: grid; gap: 12px; }
.share-type-switch { display: flex; gap: 8px; }
.share-type-switch .action-chip { flex: 1; }
.share-type-switch [data-share-type] { font-size: 0; }
.share-type-switch [data-share-type]::before { content: ""; display: block; width: 15px; height: 13px; }
.share-type-switch [data-share-type="text"]::before { border-bottom: 2px solid currentColor; transform: rotate(-35deg); }
.share-type-switch [data-share-type="image"]::before { border: 2px solid currentColor; border-radius: 3px; box-shadow: inset 4px -4px 0 -2px currentColor; }
.share-image-picker { display: grid; gap: 8px; }
.share-image-picker input { width: 100%; padding: 10px; border: 1px dashed var(--border); border-radius: 12px; background: rgba(108,77,246,0.04); font-size: 0.82rem; }
.share-backgrounds { display: grid; gap: 8px; }
.background-options { display: flex; gap: 8px; }
.background-swatch { width: 38px; height: 30px; padding: 0; border: 2px solid transparent; border-radius: 9px; cursor: pointer; }
.background-swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px rgba(108,77,246,0.2); }
.background-upload { position: relative; width: 38px; height: 30px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--purple); border-radius: 9px; background: rgba(108,77,246,0.06); color: var(--purple); cursor: pointer; font-size: 1.1rem; font-weight: 700; }
.background-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.background-one { background: linear-gradient(135deg, #211b58, #9333a8); }
.background-two { background: linear-gradient(135deg, #164e63, #14b8a6); }
.background-three { background: linear-gradient(135deg, #7c2d12, #f97316); }
.background-four { background: linear-gradient(135deg, #1e3a8a, #38bdf8); }
.share-message-form .textarea { min-height: 150px; }
.share-form-footer { justify-content: space-between; }
.share-form-footer .pill-button { width: auto; }
.shared-list { display: grid; gap: 16px; }
.shared-item {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.shared-item .share-message-preview {
  position: relative;
  min-height: 140px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 14px;
  border: 1px solid rgba(108,77,246,0.12);
  border-radius: 20px;
  text-align: center;
  gap: 10px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(25, 22, 57, 0.05);
}
.shared-item .share-message-preview.background-one { background: linear-gradient(145deg, rgba(33,27,88,0.76), rgba(93,59,209,0.7)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=85') center/cover !important; }
.shared-item .share-message-preview.background-two { background: linear-gradient(145deg, rgba(9,72,86,0.78), rgba(14,116,144,0.7)), url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1200&q=85') center/cover !important; }
.shared-item .share-message-preview.background-three { background: linear-gradient(145deg, rgba(120,53,15,0.76), rgba(190,84,20,0.72)), url('https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1200&q=85') center/cover !important; }
.shared-item .share-message-preview.background-four { background: linear-gradient(145deg, rgba(30,58,138,0.78), rgba(37,99,235,0.7)), url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1200&q=85') center/cover !important; }
.share-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.share-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.shared-item .share-message-preview .share-author-info strong {
  color: inherit;
  font-size: 0.86rem;
}
.shared-item .share-message-preview .share-author-info .share-time {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
}
.shared-item .share-message-preview.image-preview-mode .share-author-info strong {
  color: #17143b;
}
.shared-item .share-message-preview.image-preview-mode .share-author-info .share-time {
  color: #64748b;
}
.share-top-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
.shared-item .share-message-preview small,
.shared-item .share-message-preview time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
}
.shared-item .share-message-preview.image-preview-mode small,
.shared-item .share-message-preview.image-preview-mode time {
  color: #64748b;
}
.share-preview-mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #ede9fe);
  border: 1px solid rgba(108,77,246,0.18);
  color: var(--purple-deep);
  font-size: 0.7rem;
  font-weight: 800;
}
.shared-item .share-message-preview p {
  margin: 0 auto;
  width: 100%;
  max-width: 450px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: inherit;
  text-align: center;
}
.share-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 1;
  padding: 10px 0;
  text-align: center;
}
.share-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}
.share-meta time {
  color: inherit;
  font-size: 0.7rem;
}
.shared-item .share-preview-mark { width: 30px; height: 30px; font-size: 0.8rem; }
.shared-item .share-message-preview.image-preview-mode {
  background: #ffffff !important;
  background-image: none !important;
  color: #17143b !important;
  padding-top: 16px;
}
.shared-item .share-message-preview.image-preview-mode .share-preview-copy {
  text-align: center;
  padding-top: 10px;
}
.shared-item .share-message-preview.image-preview-mode .share-preview-copy p {
  text-align: center;
  color: #17143b !important;
}
.shared-item-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.share-menu-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0;
  cursor: pointer;
  box-shadow: none;
}
.share-menu-toggle::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
  margin: 0 auto;
}
.shared-item-actions {
  position: absolute;
  top: 38px;
  left: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 8px;
  border: 1px solid rgba(108,77,246,0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(23,20,59,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: 0.18s ease;
}
.shared-item-menu.is-open .shared-item-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.shared-item-actions .action-chip {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  text-align: right;
}
.shared-item-actions .action-chip:hover {
  background: rgba(108,77,246,0.06);
  color: var(--purple);
}
.shared-item .share-avatar { width: 30px; height: 30px; font-size: 0.78rem; }
.shared-item { position: relative; }
.shared-item-menu { position: absolute; top: 16px; left: 16px; z-index: 20; }
.share-menu-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 0;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.share-menu-toggle::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
}
.share-menu-toggle:hover, .shared-item-menu.is-open .share-menu-toggle { transform: scale(1.1); box-shadow: none; opacity: 0.85; }
.shared-item-menu.is-open { z-index: 40; }
.shared-item-actions { position: absolute; top: 44px; left: 0; z-index: 60; display: grid; gap: 3px; width: 166px; padding: 8px; border: 1px solid rgba(108,77,246,0.2); border-radius: 16px; background: var(--card-strong); box-shadow: 0 18px 38px rgba(23,20,59,0.2); opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.97); transform-origin: top left; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease; }
.shared-item-menu.is-open .shared-item-actions { opacity: 1; visibility: visible; transform: translateY(0) scale(1); display: grid; }
body.dark-mode .shared-item-actions { background: #121528; }
.shared-item-actions::before { content: ""; display: block; padding: 0 8px; border-bottom: 1px solid var(--border); }
.shared-item-actions .action-chip { width: 100%; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 9px; white-space: nowrap; font-size: 0.76rem; font-weight: 700; text-align: right; background: transparent; transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease; }
.shared-item-actions .action-chip:hover { padding-right: 13px; background: rgba(108,77,246,0.1); color: var(--purple); }
.shared-item-actions .action-chip.is-loading { padding-right: 10px; background: rgba(108,77,246,0.08) !important; }
.post-social-picker { display: flex; justify-content: flex-start; gap: 5px; margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--border); }.post-social-picker[hidden] { display: none; }.post-social-picker button { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 7px; color: #fff; font-family: Arial, sans-serif; font-size: 0.7rem; font-weight: 900; cursor: pointer; }.post-social-picker button:nth-child(1) { background: #25d366; }.post-social-picker button:nth-child(2) { background: #1877f2; }.post-social-picker button:nth-child(3) { background: #0084ff; }.post-social-picker button:nth-child(4) { background: #111827; }.post-social-picker button:nth-child(5) { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.shared-item-actions .action-chip[data-delete-shared]:hover { background: rgba(239,68,68,0.08); color: var(--danger); }
.edit-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(9,10,22,0.55); }
.edit-dialog { width: min(100%, 480px); padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.22); }
.edit-dialog h2 { margin: 0 0 14px; font-size: 1.12rem; }
.edit-image-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.edit-image-actions .action-chip { min-height: 32px; padding: 6px 10px; font-size: 0.78rem; }
.edit-image-actions label { cursor: pointer; }
.edit-dialog-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.edit-dialog-actions .pill-button, .edit-dialog-actions .action-chip { width: auto; min-height: 34px; padding: 7px 12px; font-size: 0.8rem; }
body.dark-mode .edit-dialog { background: #121528; color: var(--text-dark); }
.share-report-page-actions { display: flex; justify-content: flex-end; margin: 14px 0 0; }
.share-report-button { min-height: 28px; padding: 4px 9px; border: 1px solid var(--border); color: var(--muted); background: transparent; font-size: 0.72rem; }
.share-report-dialog { width: min(100%, 390px); }
.share-report-field { display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 0.82rem; }
.share-report-status { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 0.78rem; }
.share-report-status[data-type="error"] { color: #b91c1c; }
.share-report-status[data-type="success"] { color: #047857; }
.share-report-admin-item .admin-item-meta { align-items: flex-end; }
.admin-users-panel-head { gap: 14px; flex-wrap: wrap; }
.admin-users-search { display: block; min-width: min(100%, 300px); margin-inline-start: auto; }
.admin-users-search input { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.8rem; }
.admin-users-load-more-wrap { display: flex; justify-content: center; padding-top: 16px; }
.admin-users-load-more { min-width: 120px; }
.admin-user-delete-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(23,20,59,0.46); }
.admin-user-delete-dialog { width: min(100%, 430px); padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); text-align: right; }
.admin-user-delete-dialog h2 { margin: 0 0 12px; font-size: 1.1rem; }
.admin-user-delete-dialog p { margin: 0; color: var(--text-muted); line-height: 1.8; }
.admin-user-delete-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
body.dark-mode .admin-users-search input, body.dark-mode .admin-user-delete-dialog { background: var(--card-strong); color: var(--text-dark); }
@media (max-width: 640px) { .admin-users-search { width: 100%; margin-inline-start: 0; } .admin-user-delete-actions { flex-direction: column; } .admin-user-delete-actions > * { width: 100%; } }
.support-notifications-page { min-height: 100vh; }
.support-notifications-header { display: flex; justify-content: center; padding: 18px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.support-notifications-logo { display: inline-flex; align-items: center; }
.support-notifications-logo .brand-logo { width: 132px; height: auto; }
.support-notifications-main { width: min(100% - 32px, 760px); margin: 0 auto; padding: 42px 0 64px; }
.support-notifications-intro { margin-bottom: 22px; text-align: right; }
.support-notifications-intro .page-title { margin: 6px 0 8px; }
.support-notifications-list { display: grid; gap: 12px; }
.support-notification-card { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.support-notification-card.is-unread { border-color: rgba(108,77,246,0.32); }
.support-notification-header { display: flex; align-items: flex-start; gap: 12px; }
.support-notification-header strong, .support-notification-header small { display: block; }
.support-notification-header strong { color: var(--text); }
.support-notification-header small { margin-top: 4px; color: var(--text-muted); font-size: 0.76rem; }
.support-notification-mark { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); font-weight: 800; }
.support-notification-card p { margin: 16px 0 0; color: var(--text-muted); line-height: 1.8; }
body.dark-mode .support-notifications-header, body.dark-mode .support-notification-card { background: var(--card-strong); }
body.dark-mode .support-notification-header strong { color: var(--text-dark); }
@media (max-width: 560px) { .support-notifications-main { width: min(100% - 24px, 760px); padding-top: 28px; } .support-notification-card { padding: 15px; } }
.public-shared-message { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 24px; margin-bottom: 18px; border-radius: 20px; color: #fff; text-align: center; background: linear-gradient(145deg, rgba(33,27,88,0.78), rgba(93,59,209,0.7)), url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=85') center/cover; box-shadow: 0 16px 30px rgba(60,44,152,0.2); }
.public-shared-message[data-public-shared] { background-image: none; }
.public-shared-message[data-public-shared]:not(.image-preview-mode) { color: #17143b; }
.public-shared-message[data-public-shared]:not(.image-preview-mode) .public-shared-author strong,
.public-shared-message[data-public-shared]:not(.image-preview-mode) p { color: #17143b; text-shadow: none; }
.public-shared-message[data-public-shared]:not(.image-preview-mode) .public-shared-author small,
.public-shared-message[data-public-shared]:not(.image-preview-mode) small { color: #64748b; }
.public-shared-message[data-public-shared].background-one { background: linear-gradient(135deg, #211b58, #9333a8); }
.public-shared-message[data-public-shared].background-two { background: linear-gradient(135deg, #164e63, #14b8a6); }
.public-shared-message[data-public-shared].background-three { background: linear-gradient(135deg, #7c2d12, #f97316); }
.public-shared-message[data-public-shared].background-four { background: linear-gradient(135deg, #1e3a8a, #38bdf8); }
.public-shared-message[data-public-shared].background-one,
.public-shared-message[data-public-shared].background-two,
.public-shared-message[data-public-shared].background-three,
.public-shared-message[data-public-shared].background-four { color: #fff; }
.public-shared-message[data-public-shared].background-one .public-shared-author strong,
.public-shared-message[data-public-shared].background-one p,
.public-shared-message[data-public-shared].background-two .public-shared-author strong,
.public-shared-message[data-public-shared].background-two p,
.public-shared-message[data-public-shared].background-three .public-shared-author strong,
.public-shared-message[data-public-shared].background-three p,
.public-shared-message[data-public-shared].background-four .public-shared-author strong,
.public-shared-message[data-public-shared].background-four p { color: #fff; text-shadow: 0 2px 8px rgba(9,10,22,0.42); }
.public-shared-message[data-public-shared].background-one .public-shared-author small,
.public-shared-message[data-public-shared].background-one small,
.public-shared-message[data-public-shared].background-two .public-shared-author small,
.public-shared-message[data-public-shared].background-two small,
.public-shared-message[data-public-shared].background-three .public-shared-author small,
.public-shared-message[data-public-shared].background-three small,
.public-shared-message[data-public-shared].background-four .public-shared-author small,
.public-shared-message[data-public-shared].background-four small { color: rgba(255,255,255,0.8); }
.public-shared-message.image-preview-mode {
  background: #ffffff !important;
  background-image: none !important;
  color: #17143b !important;
  box-shadow: 0 6px 24px rgba(25, 22, 57, 0.06);
  border: 1px solid rgba(108, 77, 246, 0.12);
}
.public-shared-message.image-preview-mode .public-shared-author strong,
.public-shared-message.image-preview-mode p,
.public-shared-message.image-preview-mode small {
  color: #17143b !important;
  text-shadow: none !important;
}
.public-shared-message.image-preview-mode .public-shared-author small {
  color: #64748b !important;
}
.public-shared-message.image-preview-mode .public-shared-author-avatar {
  border-color: rgba(108, 77, 246, 0.2);
}
.public-shared-author { display: flex; width: min(100%, 520px); flex-direction: column; align-items: center; gap: 3px; text-align: center; }.public-shared-author-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; margin-bottom: 3px; border: 2px solid rgba(255,255,255,0.82); border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); font-weight: 800; }.public-shared-author-avatar img { width: 100%; height: 100%; object-fit: cover; }.public-shared-author strong { font-size: 0.9rem; text-shadow: 0 2px 7px rgba(9,10,22,0.35); }.public-shared-author small { color: rgba(255,255,255,0.7); font-size: 0.66rem; direction: ltr; text-align: center; }
.public-shared-message p { width: min(100%, 520px); margin: 0; font-size: clamp(1.05rem, 3vw, 1.35rem); line-height: 1.85; font-weight: 800; text-align: center; overflow-wrap: anywhere; text-shadow: 0 2px 8px rgba(9,10,22,0.42); }
.public-shared-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 14px; border: 2px solid rgba(255,255,255,0.72); }
.public-shared-message small { text-align: center; color: rgba(255,255,255,0.8); }
.public-shared-message small { color: rgba(255,255,255,0.76); }
.public-gift-feed { display: grid; gap: 8px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(217,154,32,0.22); border-radius: 12px; background: rgba(255,250,233,0.86); }.public-gift-feed[hidden] { display: none; }.public-gift-feed-heading { display: flex; align-items: center; justify-content: space-between; color: #72500f; }.public-gift-feed-heading strong { font-size: 0.76rem; }.public-gift-feed-heading small { color: #a67c28; font-size: 0.64rem; }.public-gift-feed-list { display: flex; flex-wrap: wrap; gap: 6px; }.public-gift-feed-item { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; color: #72500f; background: #fff6d5; font-size: 0.68rem; font-weight: 800; animation: public-gift-pop 0.4s ease-out both; }.public-gift-feed-item.gift-effect-heart { color: #a23556; background: #ffedf2; }.public-gift-feed-item.gift-effect-star { color: #80620c; background: #fff8d9; }.public-gift-feed-item.gift-effect-sparkles { color: #18735e; background: #e8faf4; }.public-gift-feed-item.gift-effect-spotlight { color: #345a9b; background: #eaf1ff; }.public-gift-feed-item i { font-style: normal; font-size: 1.05rem; animation: public-gift-bounce 1.4s ease-in-out infinite; }@keyframes public-gift-pop { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: scale(1); } }@keyframes public-gift-bounce { 50% { transform: translateY(-3px) rotate(-8deg); } }
.gift-celebration { position: fixed; top: 50%; left: 50%; z-index: 80; display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid rgba(255,255,255,0.72); border-radius: 14px; color: #fff; background: rgba(31,29,75,0.94); box-shadow: 0 18px 45px rgba(23,20,59,0.3); font-size: 0.85rem; transform: translate(-50%, -50%); animation: gift-celebration-in 0.4s ease-out both, gift-celebration-out 0.4s ease-in 1.8s both; }.gift-celebration span { font-size: 2.3rem; animation: gift-celebration-icon 0.8s ease-in-out infinite alternate; }.gift-celebration.gift-effect-rose { background: #a73755; }.gift-celebration.gift-effect-heart { background: #bb4d73; }.gift-celebration.gift-effect-star { background: #a87b16; }.gift-celebration.gift-effect-crown { background: #78531b; }.gift-celebration.gift-effect-sparkles { background: #197b68; }.gift-celebration.gift-effect-spotlight { background: #3a61a4; }@keyframes gift-celebration-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }@keyframes gift-celebration-out { to { opacity: 0; transform: translate(-50%, -62%) scale(0.96); } }@keyframes gift-celebration-icon { to { transform: translateY(-6px) rotate(8deg) scale(1.08); } }
.share-view .public-account-card { display: none; }
.public-profile-footer-below { margin: 22px auto 0; max-width: 620px; padding: 18px 20px; border-top: 1px solid var(--border); }
.anonymous-message-panel { margin-top: 18px; padding: 22px; }
.anonymous-message-panel h2 { margin: 0 0 4px; font-size: 1.2rem; }
.anonymous-message-panel p { margin: 0 0 14px; }
.anonymous-message-panel .textarea { min-height: 130px; }
.anonymous-message-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.anonymous-message-actions { display: flex; align-items: center; gap: 8px; }.public-gift-button { color: #9e6809; border-color: rgba(217,154,32,0.35); background: #fff8e8; }
@media (max-width: 520px) { .anonymous-message-footer { align-items: stretch; flex-direction: column; } }
body.dark-mode .shared-item { background: transparent; }
.support-widget { position: fixed; left: 16px; right: auto; top: 50%; bottom: auto; z-index: 60; direction: rtl; touch-action: none; user-select: none; cursor: grab; transform: translateY(-50%); opacity: 1; visibility: visible; }
.support-widget[hidden] { display: none !important; }
.support-widget:active, .support-widget[data-dragged="true"] { cursor: grabbing; }
.support-controls { display: flex; align-items: center; gap: 6px; }
.support-close { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(23,20,59,0.72); color: #fff; font-size: 0.8rem; line-height: 1; cursor: pointer; }
.dashboard-page .support-widget { left: 16px; top: 50%; transform: translateY(-50%); }
.dashboard-page .support-controls { display: flex; align-items: center; gap: 6px; }
.dashboard-page .support-menu { left: 0; bottom: 72px; }
.support-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.support-page-card { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,0.68); box-shadow: var(--shadow-soft); transition: transform 0.2s ease; }
.support-page-card:hover { transform: translateY(-3px); }
body.dark-mode .support-page-card { background: rgba(18,21,40,0.9); }
.support-page-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 13px; background: rgba(108,77,246,0.1); color: var(--purple); font-size: 1.3rem; }
.support-page-card strong { color: var(--text); }
body.dark-mode .support-page-card strong { color: var(--text-dark); }
.support-page-card small { color: var(--text-muted); font-size: 0.76rem; }
.support-faq { display: grid; gap: 8px; margin-top: 24px; }
.support-faq .section-title { margin-bottom: 8px; font-size: 1.35rem; }
.support-faq details { padding: 12px 0; border-top: 1px solid var(--border); }
.support-faq summary { cursor: pointer; font-weight: 700; }
.support-faq p { margin: 8px 0 0; font-size: 0.86rem; }
.support-fab {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #0284c7);
  box-shadow: 0 12px 28px rgba(2,132,199,0.3);
  cursor: pointer;
  animation: supportPulse 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, border-radius 0.25s ease;
}
.support-fab:hover { transform: translateY(-3px) scale(1.04); }
.support-fab-icon { font-size: 1.6rem; font-weight: 900; line-height: 1; transition: transform 0.25s ease; }
.support-widget.is-open .support-fab { animation: none; border-radius: 18px; }
.support-widget.is-open .support-fab-icon { transform: rotate(45deg); }
.support-menu {
  position: absolute;
  left: 0;
  bottom: 72px;
  width: 230px;
  padding: 10px;
  border: 1px solid rgba(108,77,246,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 18px 44px rgba(23,20,59,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom left;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.support-widget.is-open .support-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.support-menu-title { padding: 4px 8px 10px; color: var(--text); font-weight: 800; }
.support-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.support-channel + .support-channel { margin-top: 6px; }
.support-channel:hover { transform: translateX(-3px); filter: brightness(1.05); }
.support-channel span:not(.channel-symbol) { flex: 1; }
.support-channel small { margin-right: auto; font-size: 0.62rem; font-weight: 500; opacity: 0.84; }
.channel-symbol { width: 20px; text-align: center; font-size: 0.95rem; }
.support-channel.whatsapp { background: #16a34a; }
.support-channel.telegram { background: #0284c7; }
.support-channel.email { background: #475569; }
body.dark-mode .support-menu { background: rgba(18,21,40,0.96); border-color: rgba(255,255,255,0.08); }
body.dark-mode .support-menu-title { color: var(--text-dark); }
body.dark-mode .support-menu { background: rgba(18,21,40,0.96); border-color: rgba(255,255,255,0.1); }
body.dark-mode .support-menu-title { color: var(--text-dark); }
@keyframes supportPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(2,132,199,0.3), 0 0 0 0 rgba(16,185,129,0.32); }
  50% { box-shadow: 0 14px 30px rgba(2,132,199,0.34), 0 0 0 10px rgba(16,185,129,0); }
}

@media (max-width: 900px) {
  .hero-grid, .form-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
.wheel > span { top: 50% !important; left: 50% !important; width: auto !important; height: auto !important; margin: 0 !important; transform: translate(-50%, -50%) rotate(var(--wheel-angle)) translateY(-118px) rotate(calc(var(--wheel-angle) * -1)) !important; }
.wheel .wheel-reward-icon { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; transform: none !important; }
.wheel > span { transform: translate(-50%, -50%) rotate(var(--wheel-angle)) translateY(-96px) rotate(calc(var(--wheel-angle) * -1)) !important; }
.wheel .wheel-reward-icon { font-size: 1.8rem; }
.wheel .wheel-coins { font-size: 0.82rem; }
.wheel .wheel-coins i { font-size: 1.05rem; }
.wheel-result { position: fixed; top: 50%; left: 50%; z-index: 100; display: inline-flex; min-width: 190px; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 20px 28px; border: 2px solid rgba(255,255,255,0.9); border-radius: 22px; color: #fff; background: linear-gradient(135deg, #5b3fc4, #dc3f91 55%, #ee9b38); box-shadow: 0 20px 55px rgba(38,28,100,0.34); transform: translate(-50%, -50%); animation: wheel-result-pop 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
.wheel-result-icon { width: 46px; height: 46px; border-radius: 14px; color: #fff; background: rgba(255,255,255,0.2); font-size: 1.7rem; }
.wheel-result-coins { color: #ffe16a; font-size: 1.55rem; }
.wheel-result small { color: rgba(255,255,255,0.78); font-size: 0.68rem; }
.wheel-result strong { color: #fff; font-size: 1rem; }
.wheel-result-close { position: absolute; top: -10px; right: -10px; display: grid; width: 25px; height: 25px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #282260; font: inherit; font-size: 0.85rem; line-height: 1; cursor: pointer; }
@keyframes wheel-result-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.72); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (max-width: 600px) {
  .wheel > span { transform: translate(-50%, -50%) rotate(var(--wheel-angle)) translateY(-25vw) rotate(calc(var(--wheel-angle) * -1)) !important; }
  .wheel-result { min-width: 170px; padding: 17px 24px; }
  .wheel .wheel-reward-icon { font-size: 1.5rem; }
  .wheel .wheel-coins { font-size: 0.7rem; }
  .wheel .wheel-coins i { font-size: 0.9rem; }
}

.wheel { background: conic-gradient(#ee8990 0 12.5%, #f3bf5d 12.5% 25%, #74c6c0 25% 37.5%, #7396e2 37.5% 50%, #dc83bc 50% 62.5%, #e6a84f 62.5% 75%, #5bb2cf 75% 87.5%, #9d7bd8 87.5% 100%); }
  .dashboard-hero, .dashboard-columns { grid-template-columns: 1fr; }
  .share-creator-grid { grid-template-columns: 1fr; }
  .shared-item { align-items: stretch; flex-direction: column; }
  .shared-item .share-message-preview { width: 100%; }
  .shared-item-menu { top: 12px; left: 12px; }
  .shared-item-actions { top: 48px; left: 0; width: 156px; }
  .shared-item-actions .action-chip { width: 100%; text-align: right; }
  .nav-links { display: none; }
  .has-app-chrome .topbar, .has-app-chrome .page-shell, .has-app-chrome > main { margin-right: 0; }
  .app-sidebar {
    top: 78px;
    bottom: 0;
    height: calc(100vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-y;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -18px 0 40px rgba(23,20,59,0.16);
  }
  .app-sidebar::-webkit-scrollbar { display: none; }
  .sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 78px 0 0; z-index: 19; display: block; background: rgba(9,10,22,0.28); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .has-app-chrome .topbar { z-index: 30; }
  .chrome-menu-button { width: 38px; height: 38px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 12px; background: transparent; cursor: pointer; }
  .chrome-menu-button span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--text); }
  body.dark-mode .chrome-menu-button span { background: var(--text-dark); }
  .chrome-tools { margin-left: 0; }
  .site-search { width: min(190px, 33vw); }
  .site-footer { margin-left: 0; }
  .public-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .public-nav::-webkit-scrollbar { display: none; }
  .public-nav a { padding: 8px 10px; }
}

@media (max-width: 600px) {
  .app-shell, .container { width: min(var(--container), calc(100% - 20px)); }
  .hero { padding-top: 52px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .pill-button { width: 100%; }
  .topbar .pill-button { width: auto; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .navbar {
    position: relative;
    min-height: 70px;
    gap: 8px;
    flex-wrap: nowrap;
    padding-bottom: 44px;
  }
  .app-sidebar { width: min(290px, 84vw); }
  .navbar .brand { order: 1; margin-right: 0; }
  .navbar .brand {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    flex: 0 0 auto;
    font-size: 1rem;
  }
  .navbar .brand .brand-mark { width: 30px; height: 30px; font-size: 0.95rem; }
  .navbar .brand .brand-logo {
    width: 110px;
    max-height: 42px;
  }
  .navbar .chrome-tools {
    order: 2;
    min-width: 0;
    flex: 1 1 auto;
    margin-right: auto;
    margin-left: 0;
    gap: 8px;
    margin-top: 36px;
  }
  .navbar .nav-actions { order: 3; }
  .navbar .chrome-menu-button { position: absolute; right: 0; bottom: 5px; order: 4; }
  .navbar .notification-button { position: absolute; right: 42px; bottom: 5px; order: 4; }
  .site-search {
    width: 92px;
    min-width: 92px;
    height: 40px;
    padding: 6px 9px;
  }
  .site-search input { font-size: 0.64rem; }
  .chrome-icon-button, .chrome-menu-button { width: 40px; height: 40px; }
  .chrome-coins, .chrome-dollars {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.8rem;
  }
  .chrome-coins > span {
    width: 23px;
    height: 23px;
    font-size: 1.1rem;
  }
  .chrome-coins strong, .chrome-dollars strong { font-size: 0.82rem; }
  .chrome-dollars > span { width: 23px; height: 23px; font-size: 0.9rem; }
  .notification-button img { width: 23px; height: 23px; }
  .site-footer { flex-direction: column; gap: 18px; padding: 26px 20px 22px; }
  .site-footer nav { gap: 12px; }
  .navbar .public-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    justify-content: space-between;
    gap: 0;
    overflow: visible;
  }
  .navbar .public-nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 3px;
    font-size: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .chrome-coins, .chrome-dollars { min-width: 0; padding: 0 7px; gap: 4px; }
  .chrome-coins small { display: none; }
  .chrome-coins strong, .chrome-dollars strong { font-size: 0.74rem; }
  .chrome-dollars > span { width: 14px; height: 14px; font-size: 0.58rem; }
  .site-search { width: 102px; padding: 6px 8px; }


.wheel-result { top: var(--wheel-result-top, 50%) !important; left: var(--wheel-result-left, 50%) !important; animation: wheel-result-pop 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.2) both !important; transform: translate(-50%, -50%) !important; }
@media (max-width: 600px) {
  .wheel-result { width: min(282px, calc(100vw - 28px)) !important; }
}
.wheel-result[hidden] { display: none !important; }
.wheel-result { position: fixed !important; top: 50% !important; left: 50% !important; z-index: 1000 !important; display: flex !important; width: min(310px, calc(100vw - 32px)) !important; min-width: 0 !important; box-sizing: border-box !important; flex-direction: column !important; align-items: center !important; gap: 10px !important; margin: 0 !important; padding: 28px 24px 24px !important; overflow: visible !important; border: 2px solid rgba(255,255,255,0.9) !important; border-radius: 24px !important; color: #fff !important; background: linear-gradient(145deg, #25205f, #633ec3 45%, #db3f91 78%, #f19a3b) !important; box-shadow: 0 0 0 100vmax rgba(11,13,32,0.62), 0 24px 70px rgba(21,14,75,0.48) !important; transform: translate(-50%, -50%) !important; text-align: center !important; }
.wheel-result-kicker { display: block !important; color: #ffe68b !important; font-size: 0.9rem !important; font-weight: 800 !important; }
.wheel-result-icon { display: grid !important; width: 92px !important; height: 92px !important; place-items: center !important; border: 3px solid rgba(255,255,255,0.82) !important; border-radius: 50% !important; color: #fff !important; background: rgba(255,255,255,0.2) !important; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.1), 0 9px 24px rgba(17,12,66,0.3) !important; font-size: 3.2rem !important; line-height: 1 !important; }
.wheel-result-copy { display: block !important; color: #fff !important; text-align: center !important; }
.wheel-result-copy small { display: block !important; color: rgba(255,255,255,0.8) !important; font-size: 0.7rem !important; }
.wheel-result-copy strong { display: block !important; margin-top: 3px !important; color: #fff !important; font-size: 1.3rem !important; font-weight: 900 !important; }
.wheel-result-close { position: absolute !important; top: -12px !important; right: -12px !important; display: grid !important; width: 29px !important; height: 29px !important; place-items: center !important; border: 2px solid #fff !important; border-radius: 50% !important; color: #fff !important; background: #29235f !important; box-shadow: 0 4px 13px rgba(20,15,67,0.35) !important; font: inherit !important; font-size: 0.95rem !important; line-height: 1 !important; cursor: pointer !important; }
.wheel-result-shine { position: absolute !important; right: 20px !important; bottom: 20px !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: #ffe486 !important; box-shadow: -24px -10px 0 2px rgba(255,255,255,0.72), 25px -42px 0 1px rgba(255,228,134,0.82) !important; }

.wheel-result[hidden] { display: none !important; }
.wheel-result { position: fixed; top: 50%; left: 50%; z-index: 100; display: flex; width: min(310px, calc(100vw - 36px)); min-width: 0; box-sizing: border-box; flex-direction: column; align-items: center; gap: 9px; margin: 0; padding: 28px 24px 24px; overflow: visible; border: 2px solid rgba(255,255,255,0.88); border-radius: 24px; color: #fff; background: linear-gradient(145deg, #2d276d 0%, #6b42c5 42%, #e74691 76%, #f39b3d 100%); box-shadow: 0 0 0 100vmax rgba(13,15,38,0.56), 0 24px 65px rgba(29,20,88,0.44); transform: translate(-50%, -50%); animation: wheel-result-pop 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
.wheel-result-kicker { display: block; color: #ffe486; font-size: 0.85rem; font-weight: 800; letter-spacing: 0; }
.wheel-result-icon { display: grid; width: 92px; height: 92px; place-items: center; border: 3px solid rgba(255,255,255,0.78); border-radius: 50%; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08)); box-shadow: 0 8px 22px rgba(17,12,66,0.28), inset 0 0 0 6px rgba(255,255,255,0.1); font-size: 3.2rem; line-height: 1; }
.wheel-result-coins { color: #ffe16a; font-size: 2.3rem; font-weight: 900; }
.wheel-result-copy { display: block; text-align: center; }
.wheel-result-copy small, .wheel-result-copy strong { display: block; }
.wheel-result-copy small { color: rgba(255,255,255,0.75); font-size: 0.7rem; }
.wheel-result-copy strong { margin-top: 2px; color: #fff; font-size: 1.25rem; }
.wheel-result-close { position: absolute; top: -12px; right: -12px; display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #29235f; box-shadow: 0 4px 12px rgba(20,15,67,0.3); font: inherit; font-size: 0.95rem; line-height: 1; cursor: pointer; }
.wheel-result-close:hover { background: #151238; }
.wheel-result-shine { position: absolute; right: 18px; bottom: 18px; width: 8px; height: 8px; border-radius: 50%; background: #ffe486; box-shadow: -22px -10px 0 2px rgba(255,255,255,0.72), 25px -42px 0 1px rgba(255,228,134,0.82); }
@media (max-width: 600px) {
  .wheel-result { width: min(282px, calc(100vw - 28px)); padding: 24px 20px 21px; }
  .wheel-result-icon { width: 82px; height: 82px; font-size: 2.8rem; }
}
  .site-search input { font-size: 0.72rem; }
  .chrome-icon-button, .chrome-menu-button { width: 35px; height: 35px; flex: 0 0 35px; }
  .notification-button img { width: 21px; height: 21px; }
  .navbar { height: 120px; min-height: 120px; padding: 0; overflow: visible; }
  .navbar .brand { position: absolute; top: 2px; right: 0; z-index: 2; }
  .navbar .chrome-tools { position: absolute; top: 40px; right: 0; left: 0; width: 100%; height: 36px; display: flex; align-items: center; justify-content: flex-start; margin: 0; }
  .navbar .notification-button { position: relative; right: auto; bottom: auto; order: 4; }
  .navbar .chrome-menu-button { right: 0; bottom: 6px; z-index: 2; }
  .notification-panel { left: -4px; right: auto; width: min(280px, calc(100vw - 18px)); max-width: calc(100vw - 18px); }
}

.wheel span { transform: rotate(var(--wheel-angle)) translateY(-118px) rotate(calc(var(--wheel-angle) * -1)); }
.wheel span:nth-of-type(5), .wheel span:nth-of-type(6), .wheel span:nth-of-type(7), .wheel span:nth-of-type(8), .wheel span:nth-of-type(9) { font-size: 0.72rem; }
@media (max-width: 600px) {
  .wheel span { transform: rotate(var(--wheel-angle)) translateY(-30vw) rotate(calc(var(--wheel-angle) * -1)); }
  .wheel span:nth-of-type(5), .wheel span:nth-of-type(6), .wheel span:nth-of-type(7), .wheel span:nth-of-type(8), .wheel span:nth-of-type(9) { font-size: 0.62rem; }
}
.wheel > span { top: 50%; left: 50%; margin: -22.5px; transform: rotate(var(--wheel-angle)) translateY(-118px) rotate(calc(var(--wheel-angle) * -1)); }
.wheel .wheel-reward-icon { position: static; display: inline-flex; width: auto; height: auto; transform: none; place-items: initial; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.wheel .wheel-coins { gap: 2px; font-size: 0.7rem; font-weight: 900; direction: ltr; }
.wheel .wheel-coins i { color: #ffe27a; font-size: 0.95rem; font-style: normal; text-shadow: 0 1px 3px rgba(23,20,59,0.5); }
.wheel-countdown { margin-top: -5px; color: var(--muted); font-size: 0.74rem; font-weight: 700; direction: ltr; }
.wheel-countdown strong { color: var(--purple-deep); }
.wheel-result { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 6px 12px; border: 1px solid rgba(108,77,246,0.14); border-radius: 10px; background: rgba(255,255,255,0.82); box-shadow: 0 5px 14px rgba(38,28,100,0.08); animation: wheel-result-in 0.25s ease-out both; }
.wheel-result-icon { display: grid; width: 28px; height: 28px; place-items: center; color: #b47a11; font-size: 1.25rem; line-height: 1; }
.wheel-result-coins { color: #d99a20; font-size: 1.25rem; font-weight: 900; }
.wheel-result small, .wheel-result strong { display: block; }
.wheel-result small { color: var(--muted); font-size: 0.58rem; }
.wheel-result strong { color: var(--purple-deep); font-size: 0.76rem; }
@keyframes wheel-result-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .wheel > span { margin: -22.5px; transform: rotate(var(--wheel-angle)) translateY(-30vw) rotate(calc(var(--wheel-angle) * -1)); }
  .wheel .wheel-reward-icon { font-size: 1.25rem; }
  .wheel .wheel-coins { font-size: 0.58rem; }
  .wheel .wheel-coins i { font-size: 0.78rem; }
}

@media (min-width: 901px) {
  .has-app-chrome .topbar,
  .has-app-chrome .page-shell,
  .has-app-chrome > main { margin-right: 0; }
  .has-app-chrome .topbar { z-index: 30; }
  .app-sidebar {
    top: 78px;
    right: 0;
    bottom: 0;
    width: min(360px, 84vw);
    height: calc(100vh - 78px);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 78px 0 0; z-index: 19; display: block; background: rgba(9,10,22,0.28); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .chrome-menu-button { display: grid; }
  .navbar .chrome-menu-button { position: absolute; top: 50%; right: 0; z-index: 6; order: 4; transform: translateY(-50%); }
  .has-app-chrome .navbar .brand { right: 56px; }
}
