/* ==========================================================================
   CONNECTKRO – Single stylesheet (all pages)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --cn-primary: #2563EB;
  --cn-primary-dark: #1D4ED8;
  --cn-primary-light: #EFF6FF;
  --cn-bg: #F8F9FC;
  --cn-bg-warm: #FFF6F3;
  --cn-bg-header: #FFEDE8;
  --cn-card: #FFFFFF;
  --cn-text: #111827;
  --cn-text-muted: #6B7280;
  --cn-text-light: #9CA3AF;
  --cn-border: #E5E7EB;
  --cn-border-input: #FECACA;
  --cn-btn-disabled: #C4C4C4;
  --cn-success: #059669;
  --cn-success-bg: #ECFDF5;
  --cn-danger: #DC2626;
  --cn-sale-red: #EF4444;
  --cn-gold: #F59E0B;
  --cn-radius: 12px;
  --cn-radius-md: 14px;
  --cn-radius-lg: 18px;
  --cn-radius-pill: 999px;
  --cn-shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --cn-shadow: 0 4px 20px rgba(17, 24, 39, 0.08);
  --cn-shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.12);
  --cn-shadow-primary: 0 6px 20px rgba(37, 99, 235, 0.35);
  --cn-nav-h: 64px;
  --cn-font: 'Inter', system-ui, -apple-system, sans-serif;
  --cn-logo-font: 'Pacifico', cursive;
  --cn-safe-bottom: env(safe-area-inset-bottom, 0px);
  --cn-gradient-brand: linear-gradient(135deg, #EF4444 0%, #8B5CF6 50%, #2563EB 100%);
  --cn-gradient-primary: linear-gradient(135deg, #3B82F6, #2563EB);
}

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

html { font-size: 16px; }

body {
  font-family: var(--cn-font);
  background: var(--cn-bg);
  color: var(--cn-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cn-primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.cn-app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cn-bg);
  position: relative;
}

.cn-page {
  min-height: 100vh;
  padding-bottom: calc(var(--cn-nav-h) + 16px + var(--cn-safe-bottom));
}

.cn-page.no-nav {
  padding-bottom: max(24px, var(--cn-safe-bottom));
}

.d-none { display: none !important; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.cn-header,
.cn-header-plain,
.cn-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  min-height: 56px;
}

.cn-header { background: var(--cn-bg-header); }

.cn-header-plain,
.cn-header-bar { background: var(--cn-bg); }

.cn-header-bar.space-between { justify-content: space-between; }
.cn-header-bar.end { justify-content: flex-end; }

.cn-header-back {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--cn-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cn-header-title {
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.cn-header-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cn-primary);
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Logo
   -------------------------------------------------------------------------- */
.cn-logo {
  font-family: var(--cn-logo-font);
  font-size: 2rem;
  color: #8B1538;
  text-align: center;
  margin: 24px 0 8px;
  line-height: 1.2;
}

.cn-logo--header {
  font-size: 1.35rem;
  margin: 0;
  text-align: left;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cn-text);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.cn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--cn-radius-pill);
  font-family: var(--cn-font);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.15s ease, box-shadow 0.2s;
}

.cn-btn-primary {
  background: var(--cn-gradient-primary);
  color: #fff;
  width: 100%;
  box-shadow: var(--cn-shadow-primary);
}

.cn-btn-primary:hover:not(:disabled) {
  background: var(--cn-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.cn-btn-primary:active:not(:disabled) { transform: translateY(0); }

.cn-btn-primary:disabled,
.cn-btn-disabled {
  background: var(--cn-btn-disabled);
  color: #fff;
  cursor: not-allowed;
}

.cn-btn-outline {
  background: #fff;
  border: 1.5px solid var(--cn-text);
  color: var(--cn-text);
  flex: 1;
}

.cn-btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.cn-btn-save {
  background: #A89F8A;
  color: #fff;
  min-width: 200px;
}

.cn-txn-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1.5px solid var(--cn-primary);
  border-radius: var(--cn-radius-pill);
  background: #fff;
  color: var(--cn-primary);
  font-family: var(--cn-font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.cn-label {
  font-size: 0.8rem;
  color: var(--cn-text-muted);
  margin-bottom: 6px;
  display: block;
}

.cn-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--cn-border-input);
  border-radius: var(--cn-radius);
  font-size: 1rem;
  font-family: var(--cn-font);
  background: #FFF9F9;
  color: var(--cn-text);
  outline: none;
}

.cn-input:focus {
  border-color: var(--cn-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cn-form-block { padding: 0 24px 24px; }

.cn-birthday-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
}

.cn-phone-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--cn-radius-lg);
  overflow: hidden;
  background: #FAFAFA;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cn-phone-wrap:focus-within {
  border-color: var(--cn-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.cn-phone-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: none;
  border-right: 1px solid var(--cn-border);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--cn-font);
  white-space: nowrap;
  background: transparent;
  color: var(--cn-text);
  cursor: default;
  flex-shrink: 0;
}

.cn-phone-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.cn-phone-chevron {
  font-size: 0.65rem;
  color: var(--cn-text-light);
}

.cn-phone-input {
  flex: 1;
  border: none;
  padding: 14px 14px;
  font-size: 1rem;
  font-family: var(--cn-font);
  outline: none;
  min-width: 0;
  background: transparent;
  color: var(--cn-text);
}

.cn-phone-input::placeholder {
  color: #C4C4C4;
}

/* --------------------------------------------------------------------------
   7. Onboarding steps (nickname, gender, language)
   -------------------------------------------------------------------------- */
.cn-step-label {
  font-size: 0.9rem;
  color: var(--cn-text-muted);
  padding: 24px 24px 0;
}

.cn-step-title {
  font-size: 1.75rem;
  font-weight: 800;
  padding: 4px 24px 24px;
}

.cn-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--cn-text-muted);
  padding: 24px;
}

/* Gender */
.cn-gender-grid {
  padding: 0 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 280px;
  margin: 0 auto;
}

.cn-gender-grid--onboard {
  padding: 0;
  flex-direction: row;
  gap: 12px;
  max-width: none;
  margin: 0;
}

.cn-gender-card-wrap {
  padding-bottom: 22px;
}

.cn-gender-pick-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cn-text);
  text-align: left;
  margin-bottom: 14px;
}

.cn-gender-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cn-gender-card {
  text-align: center;
  padding: 18px 12px 16px;
  border-radius: var(--cn-radius-lg);
  border: 2px solid #E5E7EB;
  background: #FAFAFA;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.15s ease, box-shadow 0.2s;
  font-family: var(--cn-font);
  flex: 1;
  min-width: 0;
}

.cn-gender-grid--onboard .cn-gender-card {
  padding: 16px 10px 14px;
}

.cn-gender-card:hover {
  border-color: #BFDBFE;
  background: #fff;
}

.cn-gender-card.selected {
  border-color: var(--cn-primary);
  background: var(--cn-primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cn-gender-card .cn-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cn-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.cn-gender-card.selected .cn-check { display: flex; }

.cn-gender-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
}

.cn-gender-grid--onboard .cn-gender-avatar {
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

.cn-gender-avatar.male { background: linear-gradient(145deg, #7C3AED, #6366F1); }
.cn-gender-avatar.female { background: linear-gradient(145deg, #EC4899, #F472B6); }

.cn-gender-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cn-text);
}

.cn-gender-note {
  display: block;
  font-size: 0.65rem;
  color: var(--cn-text-light);
  margin-top: 4px;
  line-height: 1.3;
}

.cn-onboard-hint--warn {
  color: #B45309;
}

.cn-onboard-hint--warn i {
  color: #F59E0B;
}

/* Language */
.cn-lang-list {
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cn-lang-list--onboard {
  padding: 0;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 4px;
  scrollbar-width: thin;
}

.cn-language-card-wrap {
  padding-bottom: 22px;
}

.cn-language-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cn-lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--cn-radius-md);
  border: 1.5px solid #E5E7EB;
  background: #FAFAFA;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--cn-font);
  text-align: left;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cn-lang-card:hover {
  border-color: #BFDBFE;
  background: #fff;
}

.cn-lang-card.selected {
  background: var(--cn-gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--cn-shadow-primary);
}

.cn-lang-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  z-index: 1;
}

.cn-lang-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--cn-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.cn-lang-radio i {
  display: none;
}

.cn-lang-card.selected .cn-lang-radio {
  border-color: #fff;
  background: #fff;
  color: var(--cn-primary);
}

.cn-lang-card.selected .cn-lang-radio i {
  display: block;
}

.cn-lang-char {
  font-size: 2.75rem;
  opacity: 0.12;
  position: absolute;
  right: 14px;
  font-weight: 700;
  pointer-events: none;
  line-height: 1;
}

.cn-lang-list--onboard .cn-lang-char {
  font-size: 2.4rem;
}

.cn-lang-card.selected .cn-lang-char {
  opacity: 0.22;
  color: #fff;
}

/* --------------------------------------------------------------------------
   8. Login & OTP
   -------------------------------------------------------------------------- */
.cn-login-app {
  background: #FFF5F0;
}

.cn-login-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF5F0 0%, #FFF9F6 45%, #FFFFFF 100%);
}

.cn-login-header {
  text-align: center;
  padding: 32px 24px 8px;
  flex-shrink: 0;
}

.cn-login-logo {
  font-size: 2.4rem;
  margin: 0 0 6px;
  color: #8B1538;
  line-height: 1.15;
}

.cn-login-tagline {
  font-size: 0.88rem;
  color: var(--cn-text-muted);
  font-weight: 500;
}

.cn-login-hero {
  padding: 8px 20px 4px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cn-login-slide {
  width: 100%;
  max-width: 300px;
  height: 200px;
  margin: 0 auto;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cn-login-slide--1 {
  background: linear-gradient(145deg, #EDE9FE 0%, #FCE7F3 50%, #DBEAFE 100%);
}

.cn-login-slide--2 {
  background: linear-gradient(145deg, #FEF3C7 0%, #FDE68A 50%, #FBCFE8 100%);
}

.cn-login-slide--3 {
  background: linear-gradient(145deg, #D1FAE5 0%, #A7F3D0 50%, #BFDBFE 100%);
}

.cn-login-slide-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px;
}

.cn-login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cn-login-icon--1 { color: #7C3AED; transform: translateY(-8px); }
.cn-login-icon--2 { color: #2563EB; }
.cn-login-icon--3 { color: #EC4899; transform: translateY(8px); }
.cn-login-icon--4 { color: #EF4444; transform: translateY(-4px); }

.cn-login-hero img,
.cn-hero-illus {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.cn-hero-placeholder {
  width: 100%;
  max-width: 320px;
  height: 200px;
  margin: 0 auto;
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
  border-radius: var(--cn-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  gap: 8px;
}

.cn-promo-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 18px;
  color: #1A1A1A;
  letter-spacing: -0.02em;
}

.cn-promo-title span {
  color: var(--cn-primary);
}

.cn-promo-sub {
  font-size: 0.84rem;
  color: var(--cn-text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.cn-login-form {
  padding: 12px 24px max(28px, var(--cn-safe-bottom));
  flex-shrink: 0;
}

.cn-login-form-card {
  background: #fff;
  border-radius: var(--cn-radius-lg);
  padding: 20px 18px;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.05);
}

.cn-login-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cn-text);
  margin-bottom: 10px;
}

.cn-login-submit {
  width: 100%;
  margin-top: 16px;
  padding: 15px 24px;
  font-size: 1rem;
  gap: 10px;
}

.cn-login-submit i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.cn-login-submit.cn-btn-primary:hover:not(:disabled) i {
  transform: translateX(3px);
}

.cn-legal {
  font-size: 0.72rem;
  color: var(--cn-text-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.55;
}

.cn-legal a {
  color: var(--cn-text-muted);
  font-weight: 600;
  text-decoration: none;
}

.cn-legal a:hover {
  color: var(--cn-primary);
  text-decoration: underline;
}

.cn-login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cn-success);
  margin-top: 12px;
}

.cn-login-trust i {
  font-size: 0.9rem;
}

.cn-otp-text {
  padding: 8px 24px 0;
  font-size: 0.95rem;
  color: var(--cn-text-muted);
  line-height: 1.6;
}

.cn-otp-text strong {
  color: var(--cn-text);
  font-weight: 600;
}

.cn-otp-resend {
  text-align: center;
  font-size: 0.82rem;
  color: var(--cn-text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* OTP page – matches login */
.cn-otp-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF5F0 0%, #FFF9F6 45%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
}

.cn-otp-header {
  padding: 12px 16px 0;
}

.cn-otp-back {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cn-text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--cn-shadow-sm);
  transition: transform 0.15s ease;
}

.cn-otp-back:active { transform: scale(0.94); }

.cn-otp-hero {
  text-align: center;
  padding: 16px 24px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cn-otp-icon-wrap {
  margin-bottom: 20px;
}

.cn-otp-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #EDE9FE, #DBEAFE);
  color: var(--cn-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.cn-otp-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cn-otp-desc {
  font-size: 0.92rem;
  color: var(--cn-text-muted);
  line-height: 1.55;
}

.cn-otp-desc strong {
  color: var(--cn-text);
  font-weight: 700;
  font-size: 1rem;
}

.cn-otp-change {
  font-size: 0.84rem;
  color: var(--cn-text-muted);
  margin-top: 10px;
}

.cn-otp-change a {
  color: var(--cn-primary);
  font-weight: 600;
  text-decoration: none;
}

.cn-otp-change a:hover { text-decoration: underline; }

.cn-otp-form {
  padding: 8px 24px max(28px, var(--cn-safe-bottom));
  flex-shrink: 0;
}

.cn-otp-card {
  text-align: center;
}

.cn-otp-card .cn-login-label {
  text-align: left;
}

.cn-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.cn-otp-digit {
  width: 56px;
  height: 56px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--cn-radius);
  background: #FAFAFA;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--cn-font);
  text-align: center;
  color: var(--cn-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  caret-color: var(--cn-primary);
}

.cn-otp-digit:focus {
  border-color: var(--cn-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cn-otp-submit {
  margin-top: 20px;
}

.cn-otp-resend-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--cn-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cn-primary);
  cursor: pointer;
}

.cn-otp-resend-btn:hover { text-decoration: underline; }

.cn-otp-trust {
  margin-top: 16px;
}

/* Onboarding – nickname, gender, language shared */
.cn-onboard-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF5F0 0%, #FFF9F6 45%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
}

.cn-onboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 0;
}

.cn-onboard-skip {
  border: none;
  background: none;
  font-family: var(--cn-font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cn-primary);
  cursor: pointer;
  padding: 8px 4px;
}

.cn-onboard-skip:hover { text-decoration: underline; }

.cn-onboard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px 8px;
}

.cn-onboard-step {
  width: 28px;
  height: 4px;
  border-radius: var(--cn-radius-pill);
  background: #E5E7EB;
  transition: background 0.2s, width 0.2s;
}

.cn-onboard-step.active {
  width: 36px;
  background: var(--cn-gradient-primary);
}

.cn-onboard-step.done {
  background: #93C5FD;
}

.cn-onboard-hero--compact {
  padding-top: 4px;
  padding-bottom: 4px;
}

.cn-onboard-icon--gender {
  background: linear-gradient(145deg, #DBEAFE, #EDE9FE);
  color: #2563EB;
}

.cn-onboard-icon--language {
  background: linear-gradient(145deg, #D1FAE5, #BFDBFE);
  color: #059669;
}

.cn-onboard-hero {
  text-align: center;
  padding: 12px 24px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cn-onboard-icon-wrap {
  margin-bottom: 18px;
}

.cn-onboard-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.cn-onboard-icon--nickname {
  background: linear-gradient(145deg, #FCE7F3, #EDE9FE);
  color: #7C3AED;
}

.cn-onboard-label {
  font-size: 0.92rem;
  color: var(--cn-text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.cn-onboard-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.cn-onboard-sub {
  font-size: 0.86rem;
  color: var(--cn-text-muted);
  max-width: 280px;
  line-height: 1.45;
}

.cn-onboard-form {
  padding: 8px 24px max(28px, var(--cn-safe-bottom));
  flex-shrink: 0;
}

.cn-onboard-card .cn-login-label {
  text-align: left;
}

.cn-nickname-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--cn-radius-lg);
  background: #FAFAFA;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cn-nickname-wrap:focus-within {
  border-color: var(--cn-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cn-nickname-icon {
  font-size: 1.15rem;
  color: var(--cn-text-light);
  flex-shrink: 0;
}

.cn-nickname-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--cn-font);
  color: var(--cn-text);
  outline: none;
  min-width: 0;
}

.cn-nickname-input::placeholder {
  color: #C4C4C4;
  font-weight: 400;
}

.cn-onboard-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--cn-text-light);
  margin-top: 14px;
  text-align: center;
}

.cn-onboard-hint i {
  font-size: 0.85rem;
  color: var(--cn-primary);
}

/* --------------------------------------------------------------------------
   9. First-time offer
   -------------------------------------------------------------------------- */
.cn-offer-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF5F0 0%, #FFF0F5 40%, #FFFFFF 100%);
}

.cn-offer-header {
  justify-content: flex-end;
}

.cn-offer-header-spacer {
  flex: 1;
}

.cn-offer-hero {
  text-align: center;
  padding: 8px 24px 16px;
  position: relative;
}

.cn-offer-badge-float {
  position: absolute;
  top: 0;
  right: 28px;
  font-size: 2rem;
  animation: cn-offer-float 2.5s ease-in-out infinite;
}

@keyframes cn-offer-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(8deg); }
}

.cn-onboard-icon--offer {
  background: linear-gradient(145deg, #FEE2E2, #FCE7F3, #EDE9FE);
  color: #DC2626;
  font-size: 1.75rem;
}

.cn-offer-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.cn-offer-sub {
  font-size: 0.92rem;
  color: var(--cn-text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.cn-offer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px max(28px, var(--cn-safe-bottom));
}

.cn-offer-deal-card {
  background: #fff;
  border-radius: var(--cn-radius-lg);
  padding: 28px 20px 22px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.12);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.cn-offer-deal-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cn-offer-ribbon {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  padding: 10px 28px;
  border-radius: 10px;
  transform: rotate(-2deg);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
  letter-spacing: 0.02em;
}

.cn-offer-deal-text {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--cn-text-muted);
}

.cn-offer-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.cn-price-gradient {
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(90deg, #2563EB, #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.cn-price-old {
  text-decoration: line-through;
  color: var(--cn-text-light);
  font-size: 1.05rem;
  font-weight: 500;
}

.cn-offer-deal-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #D97706;
  background: #FFFBEB;
  padding: 6px 12px;
  border-radius: var(--cn-radius-pill);
}

.cn-offer-deal-note i {
  font-size: 0.75rem;
}

.cn-offer-pay-card {
  margin-top: auto;
  padding-bottom: 20px;
}

.cn-offer-pay-card .cn-gender-pick-label {
  margin-bottom: 16px;
}

.cn-pay-methods {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.cn-pay-method {
  flex: 1;
  max-width: 96px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cn-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--cn-font);
  padding: 0;
  transition: transform 0.15s ease;
}

.cn-pay-method:active {
  transform: scale(0.96);
}

.cn-pay-method-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #F3F4F6;
  color: var(--cn-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 8px;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.cn-pay-method--active .cn-pay-method-icon,
.cn-pay-method.cn-pay-method--active .cn-pay-method-icon {
  background: var(--cn-primary-light);
  color: var(--cn-primary);
  border-color: var(--cn-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cn-pay-method-icon--upi {
  background: #F0FDF4;
  color: #16A34A;
}

.cn-pay-method--active.cn-pay-method:first-child .cn-pay-method-icon,
.cn-pay-method:first-child.cn-pay-method--active .cn-pay-method-icon {
  background: var(--cn-primary-light);
  color: var(--cn-primary);
}

.cn-pay-method-icon--card {
  background: #F5F3FF;
  color: #7C3AED;
}

.cn-pay-method-label {
  display: block;
}

.cn-offer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cn-success);
  margin-top: 14px;
  text-align: center;
}

.cn-offer-trust i {
  font-size: 0.95rem;
}

/* Legacy offer aliases */
.cn-offer-wrap {
  padding: 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cn-offer-banner {
  margin: 24px 0;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #E53935, #C62828);
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-2deg);
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
}

.cn-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--cn-success);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   10. Home
   -------------------------------------------------------------------------- */
.cn-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--cn-bg-warm);
  flex-wrap: nowrap;
}

.cn-balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cn-gradient-primary);
  color: #fff;
  padding: 6px 6px 6px 12px;
  border-radius: var(--cn-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--cn-font);
  box-shadow: var(--cn-shadow-primary);
  transition: transform 0.15s ease;
}

.cn-balance-pill:active { transform: scale(0.97); }

.cn-balance-pill .sale-tag {
  background: var(--cn-sale-red);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.cn-balance-pill .plus-circle {
  width: 26px;
  height: 26px;
  background: #fff;
  color: var(--cn-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.cn-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.cn-avatar-sm:active { transform: scale(0.95); }

.cn-banner-dark {
  margin: 12px 16px;
  padding: 16px 18px;
  background: linear-gradient(125deg, #0f172a 0%, #1e3a5f 55%, #312e81 100%);
  border-radius: var(--cn-radius-lg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--cn-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cn-banner-dark-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.cn-banner-dark-text > i {
  color: #FDE047;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.cn-banner-dark p {
  font-size: 0.88rem;
  line-height: 1.45;
  flex: 1;
  margin: 0;
}

.cn-banner-dark strong { color: #FDE047; }

.cn-btn-buy {
  background: linear-gradient(135deg, #FBCFE8, #E9D5FF);
  color: #1e1b4b;
  border: none;
  padding: 9px 18px;
  border-radius: var(--cn-radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(251, 207, 232, 0.4);
  transition: transform 0.15s ease;
}

.cn-btn-buy:active { transform: scale(0.96); }

.cn-banner-light {
  margin: 0 16px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #93C5FD;
  border-radius: var(--cn-radius-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--cn-shadow-sm);
}

.cn-banner-light-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--cn-radius);
  background: var(--cn-gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--cn-shadow-primary);
}

.cn-banner-light p {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E40AF;
  min-width: 0;
  line-height: 1.35;
  margin: 0;
}

.cn-btn-random {
  background: var(--cn-gradient-primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--cn-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--cn-shadow-primary);
  transition: transform 0.15s ease;
}

.cn-btn-random:active { transform: scale(0.96); }

.cn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 10px;
}

.cn-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0;
  letter-spacing: -0.02em;
}

.cn-section-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cn-sale-red);
  background: #FEF2F2;
  padding: 4px 10px;
  border-radius: var(--cn-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Featured Experts – reference layout */
.cn-featured {
  padding-bottom: 8px;
}

.cn-featured-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A1A;
  padding: 6px 16px 12px;
  letter-spacing: -0.01em;
}

.cn-cat-swiper {
  padding: 0 16px 12px;
  margin-bottom: 2px;
}

.cn-cat-swiper .swiper-slide { width: auto !important; }

.cn-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--cn-radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--cn-font);
  border: 1px solid #1A1A1A;
  background: rgba(255, 255, 255, 0.55);
  color: #1A1A1A;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: none;
}

.cn-cat-pill.active {
  background: linear-gradient(90deg, #7C3AED 0%, #DB2777 45%, #EF4444 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
}

.cn-expert-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cn-expert-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: none;
}

.cn-expert-aside {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cn-expert-photo {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.cn-expert-photo img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #F3F4F6;
}

.cn-expert-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #22C55E;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.cn-expert-status {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #16A34A;
  background: #fff;
  border: 1px solid #16A34A;
  border-radius: var(--cn-radius-pill);
  padding: 2px 10px;
  line-height: 1.4;
}

.cn-expert-rating {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 3px;
}

.cn-expert-rating i {
  color: #FBBF24;
  font-size: 0.68rem;
}

.cn-expert-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 88px;
}

.cn-expert-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.cn-expert-info {
  min-width: 0;
}

.cn-expert-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1A1A1A;
  text-transform: lowercase;
}

.cn-expert-age {
  font-weight: 500;
  color: #6B7280;
}

.cn-expert-loc {
  font-size: 0.76rem;
  color: #6B7280;
  margin-top: 1px;
}

.cn-expert-rate {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-top: 3px;
}

.cn-expert-lang {
  font-size: 0.7rem;
  font-weight: 400;
  color: #9CA3AF;
  text-align: right;
  line-height: 1.4;
  max-width: 46%;
  flex-shrink: 0;
  padding-top: 2px;
}

.cn-expert-quote {
  font-size: 0.76rem;
  font-style: italic;
  color: #6B7280;
  line-height: 1.45;
  margin: 2px 0 4px;
  padding: 0;
  background: none;
  border: none;
}

.cn-expert-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 2px;
}

.cn-expert-card--quote .cn-expert-main {
  min-height: 108px;
}

.cn-btn-call {
  background: #3B71CA;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--cn-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--cn-font);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cn-btn-call:hover { background: #3267b5; }

.cn-btn-call:active { transform: scale(0.97); }

.cn-btn-call i {
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   11. Recents
   -------------------------------------------------------------------------- */
.cn-recents-page {
  background: #FFF5F0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cn-recents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  background: #FFF5F0;
}

.cn-recents-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cn-recents-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-recents-more-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cn-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--cn-shadow-sm);
}

.cn-online-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cn-text-muted);
}

.cn-toggle {
  width: 44px;
  height: 24px;
  background: var(--cn-primary);
  border: none;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.cn-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  right: 2px;
  transition: transform 0.2s, right 0.2s, left 0.2s;
}

.cn-toggle.off { background: #D1D5DB; }

.cn-toggle.off::after {
  right: auto;
  left: 2px;
}

.cn-recents-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px 40px;
  text-align: center;
  flex: 1;
  min-height: 55vh;
}

.cn-recents-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9CA3AF;
  margin-bottom: 20px;
  box-shadow: var(--cn-shadow-sm);
}

.cn-recents-empty h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #1A1A1A;
}

.cn-recents-empty p {
  font-size: 0.88rem;
  color: var(--cn-text-muted);
  margin-bottom: 24px;
  max-width: 260px;
  line-height: 1.5;
}

.cn-recents-cta {
  width: auto;
  padding: 12px 28px;
  gap: 8px;
}

.cn-recents-list-wrap {
  flex: 1;
  padding: 0 16px 8px;
}

.cn-recents-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cn-text-light);
  margin-bottom: 10px;
  padding-left: 4px;
}

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

.cn-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  background: #fff;
  border-radius: var(--cn-radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cn-recent-photo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #F3F4F6;
}

.cn-recent-body {
  flex: 1;
  min-width: 0;
}

.cn-recent-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cn-recent-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1A1A1A;
  text-transform: lowercase;
}

.cn-recent-name span {
  font-weight: 500;
  color: var(--cn-text-muted);
}

.cn-recent-time {
  font-size: 0.68rem;
  color: var(--cn-text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.cn-recent-loc {
  font-size: 0.76rem;
  color: var(--cn-text-muted);
  margin-top: 2px;
}

.cn-recent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.cn-recent-outgoing {
  font-size: 0.72rem;
  color: var(--cn-success);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cn-recent-outgoing i {
  font-size: 0.65rem;
  transform: rotate(90deg);
}

.cn-recent-rate {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cn-primary);
}

.cn-recent-call-btn {
  flex-shrink: 0;
  padding: 10px 12px !important;
}

.cn-recent-call-btn i {
  margin: 0;
}

.cn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
  flex: 1;
  min-height: 50vh;
}

.cn-empty h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cn-empty p {
  font-size: 0.88rem;
  color: var(--cn-text-muted);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   12. Profile & edit profile
   -------------------------------------------------------------------------- */
.cn-profile-page {
  background: #FFF5F0;
  padding-bottom: max(24px, var(--cn-safe-bottom));
}

.cn-profile-hero {
  background: linear-gradient(165deg, #FFEDE8 0%, #FFF5F0 60%, #FFF5F0 100%);
  padding: 12px 16px 0;
  position: relative;
  overflow: hidden;
}

.cn-profile-hero::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  top: -70px;
  right: -50px;
  pointer-events: none;
}

.cn-profile-hero::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  bottom: 20px;
  left: -40px;
  pointer-events: none;
}

.cn-profile-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cn-profile-nav-title {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.cn-profile-nav .cn-otp-back {
  flex-shrink: 0;
}

.cn-profile-wallet-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 40px;
  border: none;
  border-radius: var(--cn-radius-lg);
  background: var(--cn-gradient-primary);
  color: #fff;
  font-family: var(--cn-font);
  cursor: pointer;
  box-shadow: var(--cn-shadow-primary);
  position: relative;
  z-index: 1;
  transition: transform 0.15s ease;
}

.cn-profile-wallet-strip:active { transform: scale(0.98); }

.cn-profile-wallet-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  min-width: 0;
}

.cn-profile-wallet-left > i {
  width: 34px;
  height: 34px;
  border-radius: var(--cn-radius);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.cn-profile-sale-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--cn-sale-red);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.cn-profile-wallet-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cn-profile-wallet-right .cn-balance-val {
  font-size: 1.05rem;
  font-weight: 800;
}

.cn-profile-wallet-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #fff;
  color: var(--cn-primary);
  padding: 5px 10px;
  border-radius: var(--cn-radius-pill);
}

.cn-profile-card {
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  padding: 26px 20px 22px;
  margin: -20px 16px 12px;
  box-shadow: var(--cn-shadow-lg);
  border: 1px solid rgba(17, 24, 39, 0.06);
  text-align: center;
  position: relative;
  z-index: 2;
}

.cn-profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
}

.cn-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, #60A5FA, #A78BFA, #EC4899);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.28);
}

.cn-profile-avatar.female {
  background: linear-gradient(145deg, #F472B6, #EC4899, #FB7185);
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.28);
}

.cn-profile-initials {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.cn-profile-verified {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--cn-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--cn-shadow-sm);
}

.cn-profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.cn-profile-since {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--cn-text-muted);
  margin: 0 0 14px;
}

.cn-profile-since i {
  font-size: 0.72rem;
  color: var(--cn-text-light);
}

.cn-profile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cn-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cn-text-muted);
  background: #F9FAFB;
  border: 1px solid var(--cn-border);
  padding: 5px 12px;
  border-radius: var(--cn-radius-pill);
}

.cn-profile-chip i {
  font-size: 0.7rem;
  color: var(--cn-primary);
}

.cn-profile-btns {
  display: flex;
  gap: 10px;
}

.cn-profile-btns .cn-btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 0.82rem;
  gap: 6px;
}

.cn-profile-btn-edit {
  border-color: var(--cn-border);
  color: var(--cn-text);
  background: #F9FAFB;
}

.cn-profile-btn-wallet i {
  font-size: 0.75rem;
}

.cn-profile-section {
  padding: 6px 16px 4px;
}

.cn-profile-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cn-text-light);
  margin-bottom: 8px;
  padding-left: 4px;
}

.cn-profile-menu-card {
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.05);
  box-shadow: var(--cn-shadow-sm);
  overflow: hidden;
  margin-bottom: 4px;
}

.cn-menu-item--flat {
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid #F3F4F6;
  background: transparent;
}

.cn-menu-item--flat:active {
  background: #F9FAFB;
}

.cn-menu-item--last {
  border-bottom: none;
}

.cn-menu-icon--gray {
  background: #F3F4F6;
  color: #6B7280;
}

.cn-menu {
  padding: 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cn-menu--profile {
  padding: 0;
  gap: 8px;
}

.cn-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  box-shadow: var(--cn-shadow-sm);
  border: 1px solid rgba(17, 24, 39, 0.05);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--cn-font);
  font-size: 0.95rem;
  color: var(--cn-text);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.cn-menu-item:active {
  transform: scale(0.99);
  background: #F9FAFB;
}

.cn-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--cn-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cn-menu-icon--blue {
  background: #EFF6FF;
  color: #2563EB;
}

.cn-menu-icon--purple {
  background: #F5F3FF;
  color: #7C3AED;
}

.cn-menu-icon--teal {
  background: #ECFDF5;
  color: #059669;
}

.cn-menu-icon--gold {
  background: #FFFBEB;
  color: #D97706;
}

.cn-menu-icon--green {
  background: #F0FDF4;
  color: #16A34A;
}

.cn-menu-icon--pink {
  background: #FDF2F8;
  color: #DB2777;
}

.cn-menu-text {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
  min-width: 0;
}

.cn-menu-item > i:first-child {
  width: 24px;
  color: var(--cn-primary);
  font-size: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}

.cn-menu-item i.fa-star { color: #FBBF24; }

.cn-menu-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cn-text-light);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cn-menu-right .fa-chevron-right {
  font-size: 0.72rem;
  opacity: 0.6;
}

.cn-menu-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cn-primary);
}

.cn-safe-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--cn-success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cn-safe-footer--profile {
  margin-top: 8px;
  padding: 20px 24px 32px;
  background: linear-gradient(180deg, transparent, rgba(5, 150, 105, 0.06));
  border-radius: var(--cn-radius-lg);
  margin-left: 16px;
  margin-right: 16px;
  font-weight: 600;
}

.cn-safe-footer--profile i {
  font-size: 1rem;
}

/* Legacy profile aliases */
.cn-profile-header { background: transparent; padding-bottom: 0; }
.cn-profile-top { display: none; }

.cn-edit-avatar {
  text-align: center;
  padding: 32px 24px 24px;
}

.cn-edit-avatar .cn-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #93C5FD, #C4B5FD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.cn-edit-avatar a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.cn-edit-avatar a:hover { text-decoration: underline; }

.cn-faq-answer {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--cn-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. Wallet
   -------------------------------------------------------------------------- */
.cn-wallet-page {
  background: var(--cn-bg);
  min-height: 100vh;
}

.cn-wallet-hero {
  background: linear-gradient(165deg, #FFF1F2 0%, #FFF7ED 35%, var(--cn-bg) 85%);
  padding: 12px 16px 8px;
  position: relative;
  overflow: hidden;
}

.cn-wallet-hero::before,
.cn-wallet-hero::after {
  content: '%';
  position: absolute;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(239, 68, 68, 0.06);
  pointer-events: none;
  line-height: 1;
}

.cn-wallet-hero::before {
  top: 48px;
  right: 24px;
  transform: rotate(12deg);
}

.cn-wallet-hero::after {
  content: '₹';
  top: 120px;
  left: -8px;
  font-size: 4rem;
  color: rgba(37, 99, 235, 0.05);
  transform: rotate(-8deg);
}

.cn-wallet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 12px;
  position: relative;
  z-index: 1;
}

.cn-wallet-title {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
}

.cn-wallet-header .cn-txn-btn {
  padding: 8px 12px;
  font-size: 0.75rem;
}

.cn-wallet-header .cn-txn-btn span {
  display: none;
}

@media (min-width: 360px) {
  .cn-wallet-header .cn-txn-btn span { display: inline; }
}

.cn-wallet-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--cn-radius-md);
  background: linear-gradient(125deg, #5B21B6 0%, #2563EB 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  position: relative;
  z-index: 1;
}

.cn-wallet-promo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cn-promo-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35);
  animation: cn-pulse-dot 1.5s ease infinite;
}

@keyframes cn-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.cn-wallet-promo-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F59E0B;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--cn-radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.cn-wallet-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px;
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: var(--cn-shadow);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.cn-wallet-balance-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cn-wallet-balance-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--cn-radius);
  background: var(--cn-primary-light);
  color: var(--cn-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cn-wallet-balance-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cn-text-muted);
}

.cn-wallet-balance-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--cn-text-light);
  margin-top: 2px;
}

.cn-wallet-balance-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cn-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.cn-wallet-packs {
  flex: 1;
  padding-bottom: 200px;
}

.cn-wallet-packs-head {
  padding: 16px 16px 12px;
}

.cn-wallet-packs-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.cn-wallet-packs-sub {
  font-size: 0.78rem;
  color: var(--cn-text-light);
}

.cn-pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.cn-pack {
  background: var(--cn-card);
  border: 2px solid var(--cn-border);
  border-radius: var(--cn-radius-lg);
  padding: 0;
  min-height: 96px;
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: var(--cn-font);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--cn-shadow-sm);
  overflow: hidden;
}

.cn-pack-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 14px;
  min-height: 72px;
}

.cn-pack:has(.cn-pack-cashback) .cn-pack-inner {
  padding-bottom: 10px;
}

.cn-pack:hover { border-color: #93C5FD; }

.cn-pack.selected {
  border-color: var(--cn-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), var(--cn-shadow);
}

.cn-pack--featured.selected {
  border-color: var(--cn-sale-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), var(--cn-shadow);
}

.cn-pack-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cn-primary);
  color: #fff;
  font-size: 0.65rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cn-pack.selected .cn-pack-check {
  display: flex;
}

.cn-pack--featured.selected .cn-pack-check {
  background: var(--cn-sale-red);
}

.cn-pack-amount {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--cn-primary);
  line-height: 1.2;
}

.cn-pack.selected .cn-pack-amount {
  color: var(--cn-primary-dark);
}

.cn-pack-bonus {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cn-success);
  margin-top: 5px;
}

.cn-pack-tag {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #EF4444, #F97316);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--cn-radius-pill);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.cn-pack-sale {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--cn-gradient-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 0 var(--cn-radius-lg) 0 10px;
  z-index: 1;
}

.cn-pack-cashback {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 8px 6px;
  margin: 0;
  border-radius: 0;
}

.cn-pack.selected .cn-pack-cashback {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
}

.cn-wallet-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  padding: 14px 16px max(14px, var(--cn-safe-bottom));
  background: rgba(248, 249, 252, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 -8px 28px rgba(17, 24, 39, 0.08);
}

.cn-cashback-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
  color: var(--cn-sale-red);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: var(--cn-radius);
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid #FECACA;
}

.cn-cashback-bar i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cn-wallet-pay-btn {
  font-size: 1.02rem;
  padding: 15px 24px;
}

.cn-wallet-pay-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   14. Settings
   -------------------------------------------------------------------------- */
.cn-settings-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cn-settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--cn-card);
  border-radius: var(--cn-radius-lg);
  box-shadow: var(--cn-shadow-sm);
  border: 1px solid rgba(17, 24, 39, 0.05);
  cursor: pointer;
  width: 100%;
  font-family: var(--cn-font);
  font-size: 0.95rem;
  text-align: left;
  color: var(--cn-text);
  transition: background 0.15s, transform 0.15s;
}

.cn-settings-item:hover { background: #F9FAFB; }

.cn-settings-item:active { transform: scale(0.99); }

.cn-settings-item i {
  color: var(--cn-primary);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.cn-settings-item span { flex: 1; }

.cn-settings-item.danger i,
.cn-settings-item.danger span { color: var(--cn-danger); }

.cn-version {
  text-align: center;
  padding: 32px 16px;
  font-size: 0.78rem;
  color: var(--cn-text-light);
}

/* --------------------------------------------------------------------------
   15. Audio call
   -------------------------------------------------------------------------- */
.cn-call-app {
  background: #0F172A;
}

.cn-call-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #1E3A8A 0%, #312E81 35%, #0F172A 100%);
  display: flex;
  flex-direction: column;
}

.cn-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  position: relative;
  z-index: 2;
}

.cn-call-minimize {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.15s;
}

.cn-call-minimize:active {
  background: rgba(255, 255, 255, 0.2);
}

.cn-call-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--cn-radius-pill);
  backdrop-filter: blur(8px);
}

.cn-call-secure i {
  font-size: 0.65rem;
  color: #4ADE80;
}

.cn-call-header-spacer {
  width: 40px;
  flex-shrink: 0;
}

.cn-call-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 24px max(28px, var(--cn-safe-bottom));
  color: #fff;
}

.cn-call-avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 20px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-call-pulse {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.35);
  animation: cn-call-pulse 2s ease-out infinite;
}

.cn-call-pulse--1 {
  width: 140px;
  height: 140px;
}

.cn-call-pulse--2 {
  width: 160px;
  height: 160px;
  animation-delay: 0.6s;
}

@keyframes cn-call-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.cn-call-avatar {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.25);
}

.cn-call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#call-avatar-fallback {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.cn-call-live {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4ADE80;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 4px 10px;
  border-radius: var(--cn-radius-pill);
  white-space: nowrap;
}

.cn-call-live i {
  font-size: 0.45rem;
}

.cn-call-name {
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: capitalize;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.cn-call-loc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}

.cn-call-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.cn-call-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: var(--cn-radius-pill);
  backdrop-filter: blur(6px);
}

.cn-call-chip i.fa-star {
  color: #FBBF24;
  font-size: 0.65rem;
}

.cn-call-chip--rate {
  color: #93C5FD;
  border-color: rgba(147, 197, 253, 0.3);
}

.cn-call-timer-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--cn-radius-lg);
  padding: 18px 32px;
  margin-bottom: 12px;
  min-width: 200px;
  backdrop-filter: blur(10px);
}

.cn-call-timer-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.cn-call-timer {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cn-call-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  margin-top: 8px;
}

.cn-call-status {
  font-size: 0.82rem;
  color: #4ADE80;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cn-call-controls-dock {
  margin-top: auto;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 20px 16px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.cn-call-ctrl-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--cn-font);
}

.cn-call-ctrl {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}

.cn-call-ctrl-wrap:active .cn-call-ctrl {
  transform: scale(0.94);
}

.cn-call-ctrl--active {
  background: #DBEAFE;
  color: var(--cn-primary);
}

.cn-call-end {
  background: #EF4444;
  color: #fff;
  width: 68px;
  height: 68px;
  font-size: 1.25rem;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.45);
}

.cn-call-ctrl-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.cn-call-ctrl-label--end {
  color: #FCA5A5;
}

/* --------------------------------------------------------------------------
   16. Bottom nav, modal, toast
   -------------------------------------------------------------------------- */
.cn-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--cn-nav-h) + var(--cn-safe-bottom));
  padding-bottom: var(--cn-safe-bottom);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
}

.cn-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 28px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--cn-font);
  font-size: 0.72rem;
  color: var(--cn-text-light);
  border-radius: var(--cn-radius-pill);
  transition: color 0.2s, background 0.2s;
}

.cn-nav-item i { font-size: 1.25rem; transition: transform 0.2s; }

.cn-nav-item.active {
  color: var(--cn-primary);
  font-weight: 700;
  background: var(--cn-primary-light);
}

.cn-nav-item.active i { transform: scale(1.08); }

.cn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.cn-modal-overlay.show { display: flex; }

.cn-modal {
  background: #fff;
  border-radius: var(--cn-radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  margin-bottom: var(--cn-safe-bottom);
  position: relative;
  text-align: center;
}

.cn-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--cn-text-muted);
  cursor: pointer;
}

.cn-qr-box {
  width: 200px;
  height: 200px;
  margin: 16px auto;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cn-text-muted);
}

.cn-toast {
  position: fixed;
  bottom: calc(90px + var(--cn-safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1F2937;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--cn-radius-pill);
  font-size: 0.88rem;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90%;
  pointer-events: none;
}

.cn-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   17. Swiper
   -------------------------------------------------------------------------- */
.login-swiper {
  width: 100%;
  padding-bottom: 40px;
}

.login-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-page="login"] .login-pagination {
  bottom: 4px !important;
}

body[data-page="login"] .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #D1D5DB !important;
  opacity: 1 !important;
  transition: width 0.25s, background 0.25s;
}

body[data-page="login"] .swiper-pagination-bullet-active {
  background: var(--cn-primary) !important;
  width: 22px !important;
  border-radius: 4px !important;
}

.swiper-pagination-bullet {
  background: #D1D5DB !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--cn-primary) !important;
  width: 20px !important;
  border-radius: 4px !important;
}

/* --------------------------------------------------------------------------
   18. Page-specific layout (flex shells)
   -------------------------------------------------------------------------- */
body[data-page="login"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="login"] .cn-logo {
  margin-top: 0;
  flex-shrink: 0;
}

body[data-page="login"] .cn-login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

body[data-page="otp"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="otp"] .cn-input {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

body[data-page="otp"] .cn-form-block { padding-top: 8px; }

body[data-page="nickname"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="nickname"] .cn-step-label,
body[data-page="nickname"] .cn-step-title {
  display: none;
}

body[data-page="gender"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="gender"] .cn-step-label,
body[data-page="gender"] .cn-step-title,
body[data-page="gender"] .cn-hint {
  display: none;
}

body[data-page="language"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="language"] .cn-step-label,
body[data-page="language"] .cn-step-title {
  display: none;
}

body[data-page="offer"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="recents"] .cn-page {
  display: flex;
  flex-direction: column;
}

body[data-page="wallet"] .cn-page {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="wallet"] .cn-section-title {
  display: none;
}

body[data-page="audio-call"] .cn-page {
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   19. Desktop preview
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   20. Global polish
   -------------------------------------------------------------------------- */
body[data-page="home"],
body[data-page="home"] .cn-app,
body[data-page="home"] .cn-page {
  background: #FFF5F0;
}

body[data-page="home"] .cn-home-top {
  background: #FFF5F0;
}

body[data-page="home"] .cn-featured {
  background: #FFF5F0;
}

body[data-page="home"] .cn-expert-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.cn-home-top {
  border-bottom: none;
}

.cn-empty > i {
  background: #F3F4F6;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9CA3AF;
  margin-bottom: 16px;
}

.cn-toast.show {
  box-shadow: var(--cn-shadow-lg);
}

@media (min-width: 431px) {
  .cn-app {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}
