:root {
  --site-max-width: 1200px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
}

/* ── RESET & GLOBAL ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { /* font resize fix */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 40px;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0; }

/*────────────────────────────────────────────
  FOOTER CTA
────────────────────────────────────────────*/
.footer-button {
  margin-top: 36px;
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.footer-button:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,.35);
}

/* CONTAINER AND QUESTIONS STYLE */
.slim-container {
  padding-top: 50px;
  padding-left: 25px;
  padding-right: 25px;
  max-width: 580px;
  margin: 0 auto;
}
.question {
  font-size: 24px;
  margin-bottom: 24px;
}
p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 28px;
  word-spacing: 0.08em;
  letter-spacing: 0.2px;
  color: #e0e0e0;
}

/*────────────────────────────────────────────
  LINK CARDS
────────────────────────────────────────────*/
.links-container {
  width: 92%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;                   /* needed for absolute centring */
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1e1e1e;
  text-decoration: none;
  color: #fff;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94),
              background .25s;
}
.link-card:hover {
  transform: translateY(-4px);
  background: #282828;
  box-shadow: 0 8px 16px rgba(0,0,0,.22);
}
.link-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

/* 40 px square icon */
.link-icon {
  width: 40px; height: 40px;
  margin-right: 12px;
  border-radius: 43%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Color blocks for icons */
.color-block {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bright colors for the color blocks */
.color-blue { background-color: #007BFF; }
.color-green { background-color: #28A745; }
.color-orange { background-color: #FD7E14; }
.color-red { background-color: #DC3545; }
.color-yellow { background-color: #FFC107; }
.color-cyan { background-color: #17A2B8; }
.color-purple { background-color: #6F42C1; }
.color-teal { background-color: #20C997; }
.color-indigo { background-color: #6610F2; }

/* centre the label PERFECTLY, regardless of icon / menu widths */
.link-card-content {
  position: absolute;
  left: 50%; transform: translateX(-50%);      /* true visual centre */
  white-space: nowrap;                          /* prevent wrap */
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;                         /* text won't block link */
}

/* three-dot menu */
.link-menu {
  width: 22px; height: 22px;
  margin-left: auto;
  color: #888; opacity: .7;
  display: flex; align-items: center; justify-content: center;
}

/* ── SITE CONTAINER ── */
.pricing-tabs,
.pricing-grid,
.profile-section,
.join-section,
.footer-links {
  max-width: var(--site-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

/* ── TOP BAR ── */
.topbar {
  width: 92%;
  max-width: 580px;
  margin: var(--space-m) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo { display: none !important; }
.notification-icon,
.menu-button {
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: rgba(30,30,30,0.6);
  color: #fff;
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .25s;
}
.notification-icon:hover,
.menu-button:hover { transform: scale(1.08); }
.notification-icon { display: none !important; }
.menu-button { margin-left: auto; }
.menu-button.active { transform: rotate(90deg); }
.notification-icon svg,
.menu-button svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
  .topbar { width: 100%; padding: 0 var(--space-s); }
}

/* ── SHARE MODAL ── */
.share-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.98);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  animation: fadeIn .2s ease-out;
}
.share-modal.active { display: flex; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.share-container {
  width: 90%; max-width: 540px; max-height: 90vh;
  display: flex; flex-direction: column;
  background: #121212; color: #fff;
  border-radius: 15px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.38);
}
@media (min-width: 481px) {
  .share-container { max-height: 85vh; }
}

.share-header {
  position: relative;
  padding: var(--space-m);
  font-size: 18px; font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
}
.share-close {
  position: absolute; top:50%; right:var(--space-m);
  transform: translateY(-50%);
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .2s;
}
.share-close:hover { background:#333; }

.share-profile {
  padding: var(--space-l) var(--space-s) var(--space-m);
  margin: var(--space-m);
  background: #2c2c2c; border-radius:15px;
  display:flex; flex-direction:column; align-items:center;
}
.share-profile-image {
  width:120px; height:120px; border-radius:50%; overflow:hidden;
  margin-bottom:var(--space-m);
  display:flex; align-items:center; justify-content:center;
}
.share-profile-image canvas {
  width:100%; height:100%; display:block;
}
.share-username {
  font-size:22px; font-weight:700; margin-bottom:var(--space-xs);
}
.share-handle {
  font-size:16px; color:#ccc; text-align:center;
}

/* ── JOIN SECTION & FOOTER LINKS (inside share modal) ── */
.join-section {
  padding: var(--space-m);
  border-top: 1px solid #2a2a2a;
  background: #121212;
}
.join-title { font-size:18px; font-weight:700; margin-bottom:var(--space-xs); }
.join-description { font-size:14px; color:#aaa; margin-bottom:var(--space-m); }
.join-buttons { display:flex; gap:var(--space-m); }
.join-btn {
  flex:1; padding:12px 0; border-radius:40px;
  font-size:16px; font-weight:700; text-align:center;
  cursor:pointer; transition:transform .2s, box-shadow .2s;
}
.join-btn-primary { background:#fff; color:#000; border:none; }
.join-btn-secondary { background:transparent; color:#fff; border:1px solid #444; }

.footer-links {
  display:flex; justify-content:space-between;
  padding:15px var(--space-m);
  background:#121212;
}
.footer-link {
  font-size:14px; color:#aaa;
  transition:color .2s;
}
.footer-link:hover { color:#fff; }

@media (max-width: 480px) {
  .share-modal { background:#121212; align-items:flex-start; }
  .share-container { width:100%; height:100%; max-height:100%; margin:0; border-radius:0; box-shadow:none; }
}

/* ── PROFILE SECTION ── */
.profile-section {
  margin: var(--space-m) 0 var(--space-l);
  text-align: center;
}
.profile-logo {
  width:180px; height:180px; margin:0 auto var(--space-xs);
  border-radius:50%; overflow:hidden;
  box-shadow:0 4px 14px rgba(0,0,0,0.55);
  display:flex; align-items:center; justify-content:center;
}
.profile-logo canvas {
  width:100%; height:100%; display:block;
}
.profile-name {
  font-size:24px; font-weight:700; margin-bottom:var(--space-s);
  text-shadow:
    0 0 5px rgba(255,255,255,0.4),
    0 0 10px rgba(255,255,255,0.25),
    0 0 15px rgba(255,255,255,0.15);
}
.profile-email {
  max-width:500px; margin:0 auto var(--space-l);
  font-size:17px; color:rgba(255,255,255,0.6);
}

/* ── LOADING OVERLAY & SPINNER ── */
.loading-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.75);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  z-index:10000; text-align:center;
}
.loading-overlay.hidden { display:none; }
.loading-overlay .spinner {
  border:4px solid rgba(255,255,255,0.3);
  border-top:4px solid #fff;
  border-radius:50%;
  width:40px; height:40px;
  animation:spin 1s linear infinite;
  margin-bottom:var(--space-m);
}
@keyframes spin { to{transform:rotate(360deg);} }

/* ── TOAST POP-UPS ── */
.toast {
  position:fixed; bottom:var(--space-m);
  left:50%; transform:translateX(-50%);
  background:rgba(0,0,0,0.85);
  padding:var(--space-xs) var(--space-m);
  border-radius:4px;
  color:#fff; font-size:.9rem;
  z-index:10001; opacity:0;
  transition:opacity .3s;
}
.toast.visible { opacity:1; }

/* ── SIGNUP PAGE ── */
.container {
  max-width:400px;
  width:100%;
  margin:var(--space-xl) auto;
  padding:0 var(--space-m);
  text-align:center;
}
/* hide the old logo img entirely */
.container .logo { display:none; }

.signup-blob-container {
  width:180px; height:180px;
  margin:0 auto var(--space-m);
  border-radius:50%; overflow:hidden;
  box-shadow:0 4px 14px rgba(0,0,0,0.55);
}
.signup-blob-container canvas {
  width:100%; height:100%; display:block;
}

.container h1 {
  font-size:1.8rem; margin-bottom:var(--space-s);
}
.container .description {
  font-size:1rem; color:rgba(255,255,255,0.7);
  margin-bottom:var(--space-m);
}
.container form {
  display:flex; flex-direction:column; gap:var(--space-m);
}
.input {
  padding:var(--space-s);
  border:1px solid #333;
  border-radius:8px;
  background:#1e1e1e;
  color:#fff;
  font-size:1rem;
  width:100%;
}
.action-button {
  padding:var(--space-s);
  border:none; border-radius:8px;
  background:linear-gradient(135deg,rgba(255,255,255,0.15),rgba(255,255,255,0.05));
  color:#fff; font-size:1rem; font-weight:600;
  cursor:pointer; transition:all .3s ease;
}
.action-button:hover {
  background:linear-gradient(135deg,rgba(255,255,255,0.2),rgba(255,255,255,0.08));
  transform:translateY(-2px);
}

/* terms / privacy at bottom */
.signup-footer {
  font-size:.85rem; color:rgba(255,255,255,0.6);
  margin-top:var(--space-m);
}
.signup-footer a {
  color:rgba(255,255,255,0.8);
  transition:color .2s;
}
.signup-footer a:hover { color:#fff; }
.signup-footer span { margin:0 var(--space-xs); }

/* ── PRICING PAGE STYLES ── */

.pricing-tabs {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
  margin: var(--space-m) auto;
}
.pricing-tab {
  flex: 1;
  text-align: center;
  padding: var(--space-s) 0;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  transition: all .3s ease;
}
.pricing-tab.active {
  color: #fff;
  background: linear-gradient(135deg,rgba(255,255,255,0.15),rgba(255,255,255,0.05));
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
@media (max-width:767px) {
  .pricing-tabs { display:flex; padding:0 var(--space-s); }
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  margin-bottom: var(--space-xl);
}
.pricing-plan {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  padding: var(--space-m);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: all .3s ease;
}
.pricing-plan:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.plan-name {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xs);
}
.plan-price {
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: var(--space-s);
}
.plan-description {
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-m);
}

.features-list {
  list-style: none;
  margin-bottom: var(--space-m);
}
.features-list li {
  position: relative;
  padding-left: var(--space-m);
  margin-bottom: var(--space-s);
  font-size: .95rem;
  color: rgba(255,255,255,0.85);
  transition: color .2s ease;
}
.features-list li:hover { color:#fff; }
.features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.4);
  font-size: 1.2em;
}

.plan-cta {
  margin-top: auto;
  padding: var(--space-s);
  background: linear-gradient(135deg,rgba(255,255,255,0.15),rgba(255,255,255,0.05));
  border: none;
  border-radius: 8px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all .3s ease;
}
.plan-cta:hover {
  background: linear-gradient(135deg,rgba(255,255,255,0.2),rgba(255,255,255,0.08));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.plan-cta:active { transform: translateY(1px); }

@media (max-width:767px) {
  .pricing-grid { flex-direction: column; padding: 0 var(--space-s); }
  .pricing-plan { margin-bottom: var(--space-m); }
  .pricing-plan:not(.active) { display: none; }
  .pricing-plan.active { display: flex; }
}

/* Detailed features with descriptions */
.features-list.with-details {
  list-style: none;
  margin: 0 0 var(--space-m);
  padding: 0;
}
.features-list.with-details li {
  padding-left: 0;
}
.features-list.with-details li::before {
  content: none;
}
.feature-item {
  margin-bottom: var(--space-l);
}
.feature-title {
  position: relative;
  padding-left: var(--space-m);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.feature-title::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: .75rem;
  color: #fff;
}
.feature-desc {
  margin: var(--space-xs) 0 0 var(--space-m);
  font-size: .85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
