/* ============================
   QURAN APP - style.css
   ============================ */

/* ---------- Variables ---------- */
:root {
  --primary: #1a6b4a;
  --primary-light: #2e9e6e;
  --primary-dark: #0f4a33;
  --accent: #c8a45a;
  --accent-light: #e8c47a;
  --bg: #f5f0e8;
  --bg-card: #ffffff;
  --bg-card2: #faf7f0;
  --bg-header: #1a6b4a;
  --text: #1a1a2e;
  --text-sub: #5a6474;
  --text-light: #8a94a6;
  --border: rgba(26, 107, 74, 0.15);
  --shadow: 0 4px 24px rgba(26, 107, 74, 0.1);
  --shadow-hover: 0 8px 32px rgba(26, 107, 74, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --font-arabic: 'Amiri Quran', 'Amiri', serif;
  --font-ui: 'Cairo', sans-serif;
  --ayah-size: 1.7rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card2: #1c2128;
  --bg-header: #0d3d25;
  --text: #e6edf3;
  --text-sub: #8b949e;
  --text-light: #6e7681;
  --border: rgba(56, 180, 97, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  direction: rtl;
}

/* ---------- Background Decoration ---------- */
.bg-decoration { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  background: var(--primary);
}
.deco-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.deco-2 { width: 400px; height: 400px; bottom: 10%; left: -150px; background: var(--accent); opacity: 0.05; }
.deco-3 { width: 300px; height: 300px; top: 40%; right: 60%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  color: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  opacity: 0.97;
}

.header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-home {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-home svg { width: 22px; height: 22px; }

.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}

.btn-nav:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

.btn-nav svg { width: 18px; height: 18px; }

/* ---------- Search Bar ---------- */
.search-bar {
  position: relative;
  z-index: 1;
  padding: 0 24px 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 10px 18px;
}

.search-inner svg { width: 18px; height: 18px; color: rgba(255,255,255,0.7); flex-shrink: 0; }

.search-inner input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  direction: rtl;
}

.search-inner input::placeholder { color: rgba(255,255,255,0.5); }

.search-inner button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.search-inner button:hover { color: #fff; }
.search-inner button svg { width: 18px; height: 18px; }

/* ---------- Main Container ---------- */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 120px;
}

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- Filter Tabs ---------- */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-sub);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 107, 74, 0.3);
}

/* ---------- Suras Grid ---------- */
.suras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ---------- Surah Card ---------- */
.surah-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.surah-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.surah-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.surah-card:hover::before { opacity: 1; }

.surah-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.surah-number {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(26, 107, 74, 0.3);
}

.surah-info { flex: 1; min-width: 0; }

.surah-name-ar {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.surah-name-en {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.surah-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.surah-type {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.surah-type.meccan {
  background: rgba(200, 164, 90, 0.15);
  color: #9a7c35;
}

.surah-type.medinan {
  background: rgba(26, 107, 74, 0.12);
  color: var(--primary);
}

[data-theme="dark"] .surah-type.meccan { color: var(--accent-light); }
[data-theme="dark"] .surah-type.medinan { color: var(--primary-light); }

.surah-ayahs-count {
  font-size: 0.78rem;
  color: var(--text-light);
}

.surah-arabic-name {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: rgba(26, 107, 74, 0.12);
  position: absolute;
  left: 16px;
  bottom: 10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color var(--transition);
}

.surah-card:hover .surah-arabic-name { color: rgba(26, 107, 74, 0.08); }

/* ---------- Loading State ---------- */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loader-ring.small {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Surah View ---------- */
.surah-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-back:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-back svg { width: 16px; height: 16px; }

.surah-title-area {
  flex: 1;
  text-align: center;
}

.surah-title-main {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.surah-title-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 4px;
}

.surah-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ctrl {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-ctrl:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-ctrl svg { width: 18px; height: 18px; }

/* ---------- Bismillah ---------- */
.bismillah {
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 8px;
  position: relative;
}

.bismillah::before,
.bismillah::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--accent));
}

.bismillah::before { right: calc(50% + 160px); transform: scaleX(-1); }
.bismillah::after { left: calc(50% + 160px); }

.bismillah-text {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, rgba(26,107,74,0.06), rgba(200,164,90,0.06));
  border-radius: 50px;
  border: 1px solid rgba(200,164,90,0.3);
}

/* ---------- Ayahs Container ---------- */
.ayahs-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Ayah Item ---------- */
.ayah-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  animation: fadeIn 0.4s ease both;
}

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

.ayah-item:hover { background: var(--bg-card2); }

.ayah-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,107,74,0.25);
}

.ayah-text-arabic {
  font-family: var(--font-arabic);
  font-size: var(--ayah-size);
  line-height: 2.2;
  color: var(--text);
  text-align: right;
  flex: 1;
}

.ayah-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-direction: row-reverse;
}

/* ---------- Audio Player ---------- */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: 12px 24px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.audio-info { flex: 1; min-width: 0; }
.audio-surah-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.audio-reciter { font-size: 0.78rem; color: var(--text-sub); margin-top: 2px; }

.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.audio-btn:hover { background: var(--primary); color: #fff; }
.audio-btn svg { width: 16px; height: 16px; }

.play-btn {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(26,107,74,0.35);
}

.play-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.play-btn svg { width: 20px; height: 20px; }

.audio-progress-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-time { font-size: 0.75rem; color: var(--text-sub); flex-shrink: 0; font-variant-numeric: tabular-nums; }

.audio-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.audio-progress-fill {
  height: 100%;
  background: linear-gradient(to left, var(--primary-light), var(--primary));
  border-radius: 10px;
  width: 0%;
  transition: width 0.2s linear;
  pointer-events: none;
}

.audio-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.audio-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-sub);
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.audio-close:hover { color: var(--text); }

/* ---------- Scroll To Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 90px;
  left: 24px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,107,74,0.35);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- No Results ---------- */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}

.no-results svg { width: 64px; height: 64px; opacity: 0.3; margin-bottom: 16px; }
.no-results p { font-size: 1rem; }

/* ---------- Mushaf pages ---------- */
.mushaf-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mushaf-frame {
  width: min(760px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  position: relative;
  min-height: 280px;
  overflow: auto;
}

.mushaf-frame img {
  width: 100%;
  height: auto;
  display: none;
  border-radius: 10px;
  background: #fff;
  user-select: none;
}

.mushaf-frame img.is-ready { display: block; }

.mushaf-loading { padding: 80px 20px; }

.read-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.dock-handle {
  width: 54px;
  height: 26px;
  margin-bottom: -1px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: var(--bg-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
}

.dock-handle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.dock-handle.open svg { transform: rotate(180deg); }

.page-arrows {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 8px 22px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.bar-playback {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-playback .audio-btn,
.bar-playback .play-btn {
  width: 52px;
  height: 52px;
}

.bar-playback .audio-btn svg,
.bar-playback .play-btn svg {
  width: 22px;
  height: 22px;
}

.arrow-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.arrow-btn svg { width: 26px; height: 26px; }

.arrow-btn-next {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Player dock ---------- */
.player-dock {
  width: 100%;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  padding: 12px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-dock[hidden] { display: none !important; }

.player-tools,
.tahfeez-panel,
.player-transport {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
  min-width: 140px;
}

.player-field select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 12px;
}

.player-chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--primary);
  font-family: var(--font-ui);
  font-weight: 700;
  cursor: pointer;
}

.player-chip-solid,
.player-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tahfeez-panel[hidden] { display: none !important; }

.player-now {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}

body.is-reading .scroll-top { bottom: 110px; }
body.is-reading .main-container { padding-bottom: 120px; }
body.is-reading.dock-open .scroll-top { bottom: 320px; }
body.is-reading.dock-open .main-container { padding-bottom: 340px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header-content { padding: 12px 16px; }
  .logo-home { width: 42px; height: 42px; }
  .logo-text h1 { font-size: 1.1rem; }
  .main-container { padding: 16px 12px 120px; }
  .suras-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .surah-card { padding: 16px; }
  .surah-title-main { font-size: 1.4rem; }
  .bismillah-text { font-size: 1.4rem; }
  .ayah-text-arabic { font-size: 1.4rem; }
  .ayah-item { padding: 16px; }
  .audio-player { padding: 10px 16px; }
  .bismillah::before, .bismillah::after { display: none; }
  .player-field { min-width: 120px; flex: 1; }
  .arrow-btn { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .suras-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .surah-number { width: 36px; height: 36px; font-size: 0.75rem; }
  .surah-name-ar { font-size: 1rem; }
}

/* ---------- Share and invite ---------- */
.invite-screen,
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 28, 22, 0.72);
}

.invite-screen[hidden],
.share-modal[hidden],
.share-error[hidden],
.share-result[hidden] { display: none !important; }

.invite-card,
.share-card {
  width: min(460px, 100%);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  padding: 28px 22px 22px;
  text-align: center;
  position: relative;
}

.invite-bismillah {
  font-family: var(--font-arabic);
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.invite-card h2,
.share-card h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.invite-lead,
.invite-text,
.share-note,
.share-result p {
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}

.invite-lead { color: var(--text); font-weight: 700; font-size: 1.05rem; }

.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.invite-enter,
.invite-share {
  width: 100%;
  min-height: 48px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.share-ready {
  margin: 4px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.invite-enter {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.invite-share {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.share-card form,
.share-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  width: 100%;
}

.share-card label { font-weight: 700; font-size: 0.9rem; }

.share-card input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0 14px;
  text-align: right;
}

.share-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--bg-card2);
  color: var(--text-sub);
  cursor: pointer;
}

.share-error { color: #9b2c2c; font-weight: 700; }
