/* ===================================================
   Fiqh — Pages Stylesheet
   Auth, Chat, Pricing, About
   =================================================== */

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-950);
  padding: 24px;
}

.auth-container { width: 100%; max-width: 420px; }

.auth-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 20px; margin-bottom: 32px;
  text-decoration: none; color: #fff;
}

.auth-title {
  font-size: 28px; font-weight: 700; color: #fff;
  letter-spacing: -0.03em; margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px; font-weight: 300; color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7);
}
.form-group input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px 14px;
  font-size: 14px; font-family: inherit; font-weight: 300;
  color: #fff; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus {
  border-color: rgba(52,168,83,0.4);
  box-shadow: 0 0 0 3px rgba(52,168,83,0.1);
}

.form-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); font-weight: 300; cursor: pointer;
}
.checkbox-label input { accent-color: var(--green-500); }
.form-link { color: var(--green-400); font-weight: 400; text-decoration: none; }
.form-link:hover { text-decoration: underline; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: rgba(255,255,255,0.2); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08);
}

.auth-social {
  gap: 8px; font-weight: 400;
}

.auth-message {
  font-size: 13px; padding: 10px 12px; border-radius: 10px;
  margin-bottom: 12px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.auth-message[hidden] { display: none; }
.auth-message--error { color: #ff8a80; border-color: rgba(255,138,128,0.3); background: rgba(255,82,82,0.08); }
.auth-message--success { color: var(--green-400); border-color: rgba(52,168,83,0.25); background: rgba(52,168,83,0.08); }

.auth-footer-text {
  text-align: center; font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.4); margin-top: 20px;
}

/* ========== CHAT PAGE ========== */
.chat-page-body {
  display: flex; height: 100vh; overflow: hidden;
  background: var(--dark-950);
}

/* Sidebar */
.chat-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--dark-900);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  padding: 16px;
}

.sidebar-header { margin-bottom: 16px; }
.sidebar-header .nav-logo { font-size: 16px; }

.sidebar-new-chat {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: #fff; font-size: 13px; font-weight: 400;
  font-family: inherit; cursor: pointer;
  transition: background 0.2s ease;
}
.sidebar-new-chat:hover { background: rgba(255,255,255,0.08); }

.sidebar-chats { flex: 1; overflow-y: auto; margin-top: 16px; }
.sidebar-label {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.3); margin-bottom: 8px;
}

.sidebar-chats-list { display: flex; flex-direction: column; gap: 2px; }

.sidebar-chat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.55);
  cursor: pointer; transition: background 0.2s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative;
}
.sidebar-chat-item .sidebar-chat-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sidebar-chat-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.sidebar-chat-item.active { background: rgba(255,255,255,0.07); color: #fff; }

.sidebar-chat-delete {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
  border: none; background: transparent; color: rgba(255,255,255,0.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
}
.sidebar-chat-item:hover .sidebar-chat-delete { opacity: 1; }
.sidebar-chat-delete:hover { background: rgba(255,82,82,0.2); color: #ff5252; }

.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }

.sidebar-plan {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 12px;
}
.plan-badge {
  background: rgba(52,168,83,0.15); color: var(--green-400);
  padding: 3px 10px; border-radius: 980px; font-size: 11px; font-weight: 500;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7);
}
.sidebar-user-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-signout {
  font-size: 11px; color: rgba(255,255,255,0.4); text-decoration: none;
}
.sidebar-signout:hover { color: var(--green-400); text-decoration: underline; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(52,168,83,0.2); color: var(--green-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}

/* Main chat area */
.chat-main {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0;
}

.chat-messages {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}

/* Welcome screen */
.chat-welcome {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; text-align: center;
  padding: 40px 24px;
}
.chat-welcome-logo {
  width: 48px; height: 48px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.7; margin-bottom: 20px;
}
.chat-welcome h2 {
  font-size: 32px; font-weight: 700; color: #fff;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.chat-welcome p {
  font-size: 15px; font-weight: 300; color: var(--text-secondary);
  margin-bottom: 28px;
}

.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px;
  padding: 0 16px; box-sizing: border-box;
}
.suggestion-chip {
  padding: 10px 18px; border-radius: 980px; font-size: 13px; font-weight: 400;
  font-family: inherit; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; flex-shrink: 0;
}
.suggestion-chip:hover {
  background: rgba(255,255,255,0.08); color: #fff;
  border-color: rgba(52,168,83,0.3);
}

/* Messages */
.msg { display: flex; gap: 12px; max-width: 780px; }
.msg-user { margin-left: auto; }
.msg-ai { margin-right: auto; }

.msg-avatar-wrap {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; padding: 4px;
  background: rgba(52,168,83,0.15); border: 1px solid rgba(52,168,83,0.2);
}
.msg-ai-avatar { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }

.msg-content { min-width: 0; }

.msg-user .msg-text {
  background: var(--green-600); color: #fff;
  border-radius: 20px 20px 4px 20px; padding: 12px 18px;
  font-size: 14px; font-weight: 400; line-height: 1.6;
}

.msg-ai .msg-text {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px 20px 20px 20px; padding: 14px 18px;
  font-size: 14px; font-weight: 300; line-height: 1.65;
  color: rgba(255,255,255,0.85);
}
.msg-ai .msg-text p { margin: 0 0 8px; }
.msg-ai .msg-text p:last-child { margin-bottom: 0; }
.msg-ai .msg-text strong { font-weight: 600; color: rgba(255,255,255,0.95); }
.msg-ai .msg-text em { font-style: italic; }
.msg-ai .msg-text ul {
  margin: 8px 0; padding-left: 18px; list-style: disc;
}
.msg-ai .msg-text li {
  margin-bottom: 4px; line-height: 1.5;
}
.msg-ai .msg-text li:last-child { margin-bottom: 0; }

.msg-widgets { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* Input area */
.chat-input-area {
  padding: 10px 24px 16px; border-top: 1px solid rgba(255,255,255,0.06);
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
.chat-input-wrapper {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 6px 6px 6px 16px;
  transition: border-color 0.2s ease; max-width: 100%;
}
.chat-input-wrapper:focus-within { border-color: rgba(52,168,83,0.3); }

#chatInput {
  flex: 1; min-width: 0; background: none; border: none; color: #fff;
  font-size: 14px; font-family: inherit; font-weight: 300;
  resize: none; outline: none; line-height: 1.4;
  max-height: 160px; padding: 0; margin: 0;
}
#chatInput::placeholder { color: rgba(255,255,255,0.25); }

.chat-send {
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%; border: none;
  background: var(--green-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-send:hover { background: var(--green-400); transform: scale(1.05); }

.chat-disclaimer {
  text-align: center; font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.4); margin-top: 10px;
}

/* Typing indicator (3 dots) */
.typing-indicator {
  display: flex; gap: 5px; align-items: center;
  padding: 12px 16px;
}
.typing-indicator .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Mobile sidebar */
.chat-sidebar-toggle {
  display: none; position: fixed; top: 14px; left: 14px;
  z-index: 100; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
  color: #fff; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.3s ease;
}
.sidebar-overlay.visible { display: block; opacity: 1; }

@media (max-width: 768px) {
  .chat-sidebar {
    position: fixed; left: -280px; top: 0; bottom: 0; z-index: 200;
    transition: left 0.3s ease;
  }
  .chat-sidebar.open { left: 0; }
  .chat-sidebar-toggle { display: flex; }
}

/* ========== WIDGETS ========== */
.widget {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 16px rgba(0,0,0,0.15);
  max-width: 480px;
}

.widget-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--green-400); margin-bottom: 12px;
}

.widget-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 22px; line-height: 1.8; color: rgba(255,255,255,0.9);
  margin-bottom: 8px; text-align: right;
}

.widget-translation {
  font-size: 13px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 8px;
}

.widget-tafsir {
  font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.4);
  line-height: 1.5; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06);
}

.widget-source {
  font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* Hadith */
.widget-narrator { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; font-weight: 300; }
.widget-hadith-text {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.8);
  line-height: 1.65; font-style: italic; margin-bottom: 10px;
}
.widget-grade {
  display: inline-block; padding: 2px 10px; border-radius: 980px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.widget-grade--sahih { background: rgba(52,168,83,0.15); color: var(--green-400); }
.widget-grade--hasan { background: rgba(255,193,7,0.15); color: #ffc107; }
.widget-grade--daif { background: rgba(255,82,82,0.15); color: #ff5252; }

/* Audio */
.widget-audio-info { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.widget-audio-player { display: flex; align-items: center; gap: 10px; }
.audio-play-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--green-500); color: #fff; font-size: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.audio-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.audio-progress-bar { width: 0%; height: 100%; background: var(--green-400); border-radius: 2px; }
.audio-time { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 400; }

/* Prayer times */
.widget-prayer-grid { display: flex; flex-direction: column; gap: 6px; }
.prayer-item {
  display: flex; justify-content: space-between; padding: 6px 10px;
  border-radius: 8px; font-size: 13px;
}
.prayer-name { font-weight: 400; color: rgba(255,255,255,0.6); }
.prayer-time { font-weight: 500; color: rgba(255,255,255,0.8); }
.prayer-item--active { background: rgba(52,168,83,0.1); }
.prayer-item--active .prayer-name { color: var(--green-400); font-weight: 500; }
.prayer-item--active .prayer-time { color: var(--green-400); }

/* Qibla */
.widget-qibla { min-width: 0; }
.widget-compass { text-align: center; padding: 14px 0 8px; }
.compass-ring {
  width: 88px; height: 88px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12); margin: 0 auto 14px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.compass-needle {
  width: 3px; height: 32px; background: linear-gradient(to top, transparent 0%, var(--green-400) 100%);
  border-radius: 2px; transform-origin: 50% 100%;
  position: absolute; bottom: 50%; left: 50%; margin-left: -1.5px;
}
.compass-label { display: block; font-size: 14px; font-weight: 600; color: var(--green-400); margin-bottom: 4px; }
.compass-note { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.5); margin: 0; }

/* Dhikr */
.dhikr-phrase {
  font-family: 'Amiri', serif; font-size: 28px; text-align: center;
  color: rgba(255,255,255,0.9); margin-bottom: 4px; direction: rtl;
}
.dhikr-transliteration { font-size: 13px; text-align: center; color: rgba(255,255,255,0.4); font-weight: 300; margin-bottom: 16px; }
.dhikr-counter-wrap { text-align: center; margin-bottom: 14px; }
.dhikr-count { font-size: 36px; font-weight: 700; color: var(--green-400); }
.dhikr-target { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.3); margin-left: 4px; }
.dhikr-tap { margin: 0 auto; display: block; padding: 8px 32px; }

/* Madhab comparison */
.widget-madhab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.madhab-col { padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.03); }
.madhab-col p { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.5; margin-top: 6px; }
.madhab-name {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 4px; display: inline-block;
}
.madhab-name.hanafi { background: rgba(52,168,83,0.12); color: var(--green-400); }
.madhab-name.maliki { background: rgba(255,193,7,0.12); color: #ffc107; }
.madhab-name.shafii { background: rgba(66,133,244,0.12); color: #4285f4; }
.madhab-name.hanbali { background: rgba(255,82,82,0.12); color: #ff5252; }

/* Calendar */
.widget-cal-info {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.cal-hijri { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cal-day { font-size: 28px; font-weight: 700; color: #fff; line-height: 1; }
.cal-month { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.6); }
.cal-gregorian {
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.cal-upcoming { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; margin-top: 2px; }
.cal-event { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.55); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cal-event:last-child { margin-bottom: 0; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-400); flex-shrink: 0; }

/* Dua */
.widget-dua .widget-arabic { font-size: 20px; }

/* Book reference */
.widget-book-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.widget-book-meta { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.widget-book-excerpt {
  font-size: 13px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.6); line-height: 1.6;
  padding-left: 12px; border-left: 2px solid rgba(52,168,83,0.3);
}

/* Scholar opinion */
.widget-scholar-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.scholar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.scholar-era { font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.35); margin-left: 6px; }
.widget-scholar-text {
  font-size: 13px; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.65); line-height: 1.6;
}

/* ========== ABOUT PAGE ========== */
.page-content { background: var(--dark-950); min-height: 100vh; }

.about-hero {
  text-align: center; padding-top: 120px; margin-bottom: 64px;
}

.about-section { margin-bottom: 64px; }

.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.about-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px; padding: 32px 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.about-card h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.about-card p { font-size: 14px; font-weight: 300; color: var(--text-secondary); line-height: 1.65; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { text-align: center; }
.value-number {
  font-size: 36px; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--green-300) 0%, var(--green-600) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px; display: block;
}
.value-item h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.value-item p { font-size: 13px; font-weight: 300; color: var(--text-secondary); line-height: 1.5; }

/* ========== UPGRADE POPUP ========== */
.upgrade-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.upgrade-overlay.visible { opacity: 1; pointer-events: auto; }
.upgrade-popup {
  background: var(--dark-900);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 36px 32px; max-width: 400px; width: 90%;
  text-align: center; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: scale(0.95); transition: transform 0.3s ease;
}
.upgrade-overlay.visible .upgrade-popup { transform: scale(1); }
.upgrade-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.upgrade-close:hover { color: #fff; }
.upgrade-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(52,168,83,0.15); color: var(--green-400);
  display: flex; align-items: center; justify-content: center;
}
.upgrade-popup h3 {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.upgrade-popup p {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6);
  line-height: 1.6; margin-bottom: 20px;
}
.upgrade-popup .btn { margin-bottom: 12px; }
.upgrade-note {
  font-size: 12px !important; color: rgba(255,255,255,0.3) !important;
  margin-bottom: 0 !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-madhab-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .auth-card { padding: 28px 24px; }
  .values-grid { grid-template-columns: 1fr; }
}
