/* ===== SPEAKLY MAIN CSS ===== */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0369A1;
  --primary-light: #E0F2FE;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }

/* ===== FLASH ===== */
.flash-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 20px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; animation: slideIn .3s ease; }
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ===== APP LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100; transition: transform .3s ease;
}
.sidebar-logo { padding: 20px 20px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.logo-icon { font-size: 1.6rem; }
.logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.sidebar-nav { padding: 12px 0; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  font-size: .9rem; color: var(--text-muted); transition: all .2s; cursor: pointer;
  border-left: 3px solid transparent; position: relative;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.nav-item.nav-premium { color: var(--warning); }
.nav-item.nav-premium:hover { background: #FEF3C7; }
.nav-item.premium-badge-nav { color: var(--success); font-weight: 600; }
.nav-item.nav-logout { color: var(--danger); }
.nav-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(145deg, #F0F9FF, #E0F2FE);
  box-shadow: 0 2px 5px rgba(31,27,90,.10), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .2s, box-shadow .2s;
  color: var(--primary-dark);
}
.nav-icon svg { width: 17px; height: 17px; }
.nav-item:hover .nav-icon { transform: translateY(-1px) scale(1.06); box-shadow: 0 4px 8px rgba(31,27,90,.16), inset 0 1px 0 rgba(255,255,255,.7); }
.nav-item.active .nav-icon { box-shadow: 0 4px 10px rgba(14,165,233,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.sidebar-nav > a:nth-of-type(1) .nav-icon { background: linear-gradient(145deg, #E0F2FE, #BAE6FD); color: #0369A1; }
.sidebar-nav > a:nth-of-type(2) .nav-icon { background: linear-gradient(145deg, #EDE9FE, #DDD6FE); color: #6D28D9; }
.sidebar-nav > a:nth-of-type(3) .nav-icon { background: linear-gradient(145deg, #CCFBF1, #99F6E4); color: #0F766E; }
.sidebar-nav > a:nth-of-type(4) .nav-icon { background: linear-gradient(145deg, #FEF3C7, #FDE68A); color: #B45309; }
.sidebar-nav > a:nth-of-type(5) .nav-icon { background: linear-gradient(145deg, #FCE7F3, #FBCFE8); color: #BE185D; }
.sidebar-nav > a:nth-of-type(6) .nav-icon { background: linear-gradient(145deg, #FEF9C3, #FDE047); color: #A16207; }
.nav-sm { font-size: .82rem; padding: 8px 20px; }
.nav-divider { margin: 8px 20px; border: none; border-top: 1px solid var(--border); }
.badge { background: var(--danger); color: #fff; border-radius: 50%; font-size: .7rem; padding: 1px 6px; position: absolute; right: 16px; }

/* ===== MAIN WRAPPER ===== */
.main-wrapper { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.sidebar-toggle { background: none; border: none; font-size: 1.3rem; cursor: pointer; display: none; }
.topbar-nav { display: flex; gap: 4px; }
.topbar-nav a {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: .875rem; color: var(--text-muted);
  font-weight: 500; transition: all .2s; position: relative;
}
.topbar-nav a .badge { position: static; margin-left: 6px; display: inline-block; }
.topbar-nav a:hover { background: var(--primary-light); color: var(--primary); }
.topbar-nav a.active { background: var(--primary); color: #fff; }
.topbar-nav a.admin-link { background: #FEF3C7; color: #92400E; }

/* ===== CONTENT ===== */
.content { padding: 28px 32px; flex: 1; }

/* ===== DASHBOARD ===== */
.dashboard-hero { margin-bottom: 20px; text-align: center; }
.dashboard-hero h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text); }
.dashboard-hero p { color: var(--text-muted); margin-top: 4px; }

/* ===== FILTER BAR WITH GLOBE ===== */
.filter-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 2px solid var(--border); background: var(--surface);
  font-size: .875rem; font-weight: 600; cursor: pointer; transition: all .2s; color: var(--text-muted);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-btn.locked { opacity: .6; cursor: not-allowed; }
.lock-icon { font-size: .75rem; }

/* ===== GLOBE ===== */
.start-calling-center { display: flex; align-items: center; justify-content: center; }
.globe-wrapper {
  position: relative; width: 190px; height: 190px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.globe-ring { position: absolute; border-radius: 50%; animation: globeSpin 3s linear infinite; }
.ring1 { width: 190px; height: 190px; border: 2px solid rgba(14,165,233,0.25); animation-duration: 3s; }
.ring2 { width: 150px; height: 150px; border: 2px solid rgba(6,182,212,0.35); animation-duration: 2.2s; animation-direction: reverse; }
.ring3 { width: 110px; height: 110px; border: 2px solid rgba(14,165,233,0.45); animation-duration: 1.8s; }
@keyframes globeSpin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.6; }
}
.globe-core {
  position: relative; z-index: 10; width: 92px; height: 92px;
  background: radial-gradient(circle at 32% 28%, #7DD3FC 0%, var(--primary) 45%, #0369A1 100%);
  border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(14,165,233,.5), inset 0 3px 8px rgba(255,255,255,.4), inset 0 -8px 14px rgba(0,0,0,.18);
  transition: transform 0.2s;
}
.globe-wrapper:hover .globe-core { transform: scale(1.1); }
.globe-emoji { line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.globe-emoji svg { width: 26px; height: 26px; color: #fff; display: block; }
.globe-text {
  font-size: 0.58rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-top: 3px; text-align: center; line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.globe-wrapper.searching .ring1 { animation-duration: 0.7s; border-color: rgba(239,68,68,0.5); }
.globe-wrapper.searching .ring2 { animation-duration: 0.5s; border-color: rgba(239,68,68,0.6); }
.globe-wrapper.searching .ring3 { animation-duration: 0.4s; border-color: rgba(239,68,68,0.7); }
.globe-wrapper.searching .globe-core { background: radial-gradient(circle at 32% 28%, #FCA5A5 0%, #EF4444 45%, #B91C1C 100%); }

/* ===== SEARCH STATUS ===== */
.search-status {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE); border: 1px solid #BAE6FD;
  border-radius: var(--radius); margin-bottom: 16px; color: var(--primary); font-weight: 600;
}
.search-pulse {
  width: 14px; height: 14px; border-radius: 50%; background: var(--primary);
  animation: searchPulse 1s infinite; flex-shrink: 0;
}
@keyframes searchPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ===== PREMIUM STATUS BAR ===== */
.premium-status-bar {
  display: flex; justify-content: space-between; padding: 10px 16px;
  background: linear-gradient(135deg, #FFF7ED, #FEF3C7); border: 1px solid #FDE68A;
  border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .85rem; font-weight: 600; color: #92400E;
}

/* ===== OFFER BANNER ===== */
.offer-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px; animation: pulse 2s infinite;
}
.offer-banner-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.offer-actions { display: flex; gap: 8px; }
.btn-accept { background: #fff; color: var(--success); border: none; padding: 7px 16px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
.btn-decline { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 7px 16px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(14,165,233,.4); } 50% { box-shadow: 0 0 0 8px rgba(14,165,233,0); } }

.global-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  border-radius: var(--radius); padding: 14px 20px; display: flex; align-items: center;
  gap: 14px; box-shadow: 0 12px 30px rgba(14,165,233,.35); z-index: 999;
  animation: pulse 2s infinite; max-width: 92vw; flex-wrap: wrap;
}
.global-toast .btn-primary { background: #fff; color: var(--primary-dark); }
.global-toast .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.global-toast .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.15); }

/* ===== USER CARDS GRID ===== */
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.user-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .25s; box-shadow: var(--shadow);
}
.user-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(14,165,233,.16); border-color: var(--primary); }
.user-card.highlighted { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(6,182,212,.2); }
.user-card-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; text-decoration: none; color: inherit; cursor: pointer;
}
.user-avatar {
  font-size: 2.6rem; width: 64px; height: 64px;
  background: linear-gradient(145deg, #F0F9FF, #E0F2FE);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(14,165,233,.18), inset 0 2px 4px rgba(255,255,255,.8);
}
.user-info { text-align: center; }
.user-info h3 { font-size: .95rem; font-weight: 700; }
.user-country { font-size: .8rem; color: var(--text-muted); }
.user-stars { font-size: .85rem; }
.user-gender-badge { display: inline-block; padding: 2px 10px; border-radius: 50px; font-size: .75rem; font-weight: 600; margin-top: 4px; }
.user-gender-badge.male { background: #DBEAFE; color: #1D4ED8; }
.user-gender-badge.female { background: #FCE7F3; color: #BE185D; }
.user-status { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--success); }
.user-status.offline { color: var(--text-muted); }
.online-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: blink 1.5s infinite; }
.offline-dot { width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.user-actions { width: 100%; margin-top: 4px; }
.btn-offer {
  width: 100%; padding: 8px; border: 2px solid var(--primary); background: transparent; color: var(--primary);
  border-radius: var(--radius-sm); font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .2s;
}
.btn-offer:hover { background: var(--primary); color: #fff; }
.btn-offer.sent { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.btn-offer.locked { border-color: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ===== EMPTY STATE ===== */
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--text-muted); }
.empty-state span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 9000; }
.modal-card { background: var(--surface); border-radius: var(--radius); padding: 32px; max-width: 400px; width: 90%; text-align: center; box-shadow: var(--shadow-md); }
.modal-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.modal-card p { color: var(--text-muted); margin-bottom: 20px; }

/* ===== AUTH ===== */
.auth-page { background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%); min-height: 100vh; }
.auth-bg { display: flex; min-height: 100vh; }
.auth-left { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 60px; color: #fff; }
.auth-brand { margin-bottom: 40px; }
.logo-icon-lg { font-size: 3rem; }
.auth-brand h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.5rem; font-weight: 800; margin: 8px 0; }
.auth-brand p { opacity: .85; line-height: 1.6; font-size: 1.05rem; }
.auth-tagline { display: flex; flex-direction: column; gap: 12px; }
.tagline-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.15); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.auth-right { width: 460px; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { background: var(--surface); border-radius: 20px; padding: 40px; width: 100%; box-shadow: var(--shadow-md); }
.auth-card h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.auth-sub { color: var(--text-muted); margin-bottom: 28px; }
.auth-divider { text-align: center; color: var(--text-light); margin: 20px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content:''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-link { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 16px; }
.auth-link a { color: var(--primary); font-weight: 600; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.blocked-list { display: flex; flex-direction: column; gap: 10px; }
.blocked-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.blocked-row-avatar {
  font-size: 1.6rem; width: 40px; height: 40px;
  background: linear-gradient(145deg, #F0F9FF, #E0F2FE); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(14,165,233,.15), inset 0 1px 3px rgba(255,255,255,.8);
}
.blocked-row-info { flex: 1; display: flex; flex-direction: column; }
.blocked-row-info span { font-size: .8rem; color: var(--text-muted); }
.blocked-row .btn-ghost { margin-top: 0; }
.settings-link-list { display: flex; flex-direction: column; gap: 8px; }
.settings-link-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text); font-size: .9rem;
  font-weight: 500; text-decoration: none; transition: all .2s;
}
.settings-link-row:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.settings-link-arrow { color: var(--text-light); font-size: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-family: inherit; background: var(--surface); transition: border .2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; padding: 11px 24px; background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: .9rem; font-weight: 700; cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-full { width: 100%; text-align: center; }
.btn-ghost { display: inline-block; padding: 10px 20px; background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; cursor: pointer; margin-top: 8px; font-family: inherit; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { display: inline-block; padding: 10px 20px; background: var(--danger); color: #fff; border: none; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-danger-outline { display: inline-block; padding: 10px 20px; background: transparent; color: var(--danger); border: 1.5px solid var(--danger); border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 12px; border: 1.5px solid var(--primary); color: var(--primary); border-radius: 6px; font-size: .8rem; font-weight: 600; background: transparent; cursor: pointer; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 24px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--text); width: 100%; font-family: inherit;
}
.btn-google:hover { background: var(--bg); border-color: var(--text-muted); }

/* ===== CARD ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 2px 8px rgba(31,27,90,.06); }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; }

/* ===== PROFILE ===== */
.profile-hero {
  background: linear-gradient(135deg, #38BDF8, var(--primary) 55%, var(--accent));
  border-radius: 20px; padding: 32px; display: flex; align-items: center; gap: 24px;
  margin-bottom: 20px; color: #fff; box-shadow: 0 16px 36px rgba(14,165,233,.28);
}
.profile-hero-info { flex: 1; }
.follow-btn {
  align-self: center; flex-shrink: 0; padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid #fff; background: rgba(255,255,255,.15); color: #fff;
  font-weight: 700; font-size: .9rem; cursor: pointer; backdrop-filter: blur(4px);
  transition: all .2s;
}
.follow-btn:hover { background: rgba(255,255,255,.28); }
.follow-btn.following { background: #fff; color: var(--primary-dark); border-color: #fff; }
.follow-btn.following:hover { background: rgba(255,255,255,.85); }

.user-actions-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.profile-msgoffer-row { display: flex; gap: 12px; margin-bottom: 20px; }
.msgoffer-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 20px; border-radius: var(--radius); font-size: .95rem; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  transition: all .2s;
}
.msgoffer-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.msgoffer-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(14,165,233,.28); }
.msgoffer-btn.primary:hover { background: var(--primary-dark); color: #fff; }
.msgoffer-btn.locked { color: var(--text-muted); cursor: not-allowed; opacity: .7; }
.msgoffer-btn.locked:hover { border-color: var(--border); color: var(--text-muted); transform: none; }
.btn-action {
  width: 100%; display: block; text-align: center; padding: 13px 20px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem;
  cursor: pointer; transition: all .2s; font-family: inherit; text-decoration: none;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
}
.btn-action:hover { border-color: var(--primary); color: var(--primary); }
.btn-action.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.btn-action.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-action.primary:hover { background: var(--primary-dark); color: #fff; }
.btn-action.locked { color: var(--text-muted); cursor: not-allowed; opacity: .7; }
.btn-action.locked:hover { border-color: var(--border); color: var(--text-muted); }
.btn-action.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-action.danger:hover { background: var(--danger); color: #fff; }
.profile-avatar-lg {
  font-size: 4rem; width: 88px; height: 88px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.15), inset 0 2px 4px rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.profile-hero-info h2 { font-size: 1.5rem; font-weight: 800; }
.profile-hero-info p { opacity: .85; }
.profile-stars { font-size: 1.2rem; margin: 6px 0; }
.no-stars { font-size: .85rem; opacity: .7; }
.premium-chip { display: inline-block; background: rgba(255,255,255,.25); padding: 3px 12px; border-radius: 50px; font-size: .8rem; font-weight: 700; margin-top: 6px; }
.upgrade-chip { display: inline-block; background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 50px; font-size: .8rem; font-weight: 700; margin-top: 6px; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.profile-details h3 { margin-bottom: 16px; font-weight: 700; }
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.detail-row:last-of-type { border: none; }

/* ===== TALK HISTORY ===== */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.history-avatar-link { display: block; text-decoration: none; flex-shrink: 0; }
.history-avatar { font-size: 2rem; width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.history-info { flex: 1; }
.history-name { font-weight: 700; font-size: .95rem; color: var(--primary); }
.history-country, .history-time { display: block; font-size: .8rem; color: var(--text-muted); }
.history-meta { text-align: right; }
.history-duration { display: block; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.history-actions { display: flex; gap: 6px; justify-content: flex-end; }
.btn-offer-sm {
  background: transparent; border: 1.5px solid var(--primary); color: var(--primary);
  padding: 5px 12px; border-radius: 6px; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.btn-offer-sm:hover { background: var(--primary); color: #fff; }

/* ===== CHAT ===== */
.chat-list { display: flex; flex-direction: column; gap: 4px; }
.chat-list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all .2s; }
.chat-list-item:hover { border-color: var(--primary); background: var(--primary-light); }
.chat-list-badge { position: static; flex-shrink: 0; min-width: 20px; text-align: center; }
.chat-avatar {
  font-size: 1.8rem; width: 44px; height: 44px;
  background: linear-gradient(145deg, #F0F9FF, #E0F2FE); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(14,165,233,.15), inset 0 1px 3px rgba(255,255,255,.8);
}
.chat-info { flex: 1; }
.chat-info strong { display: block; font-size: .9rem; }
.chat-info span { font-size: .8rem; color: var(--text-muted); }
.chat-arrow { color: var(--text-light); font-size: 1.3rem; }
.chat-window { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - 56px); }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; border-bottom: 1px solid var(--border); }
.back-btn { font-size: 1.5rem; color: var(--primary); font-weight: 700; }
.chat-header-avatar { font-size: 1.8rem; text-decoration: none; }
.chat-header-info { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.chat-header-info:hover strong { color: var(--primary); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; flex-direction: column; max-width: 70%; }
.msg-sent { align-self: flex-end; align-items: flex-end; }
.msg-recv { align-self: flex-start; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.msg-sent .msg-bubble { background: var(--primary); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg-recv .msg-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; }
.msg-time { font-size: .72rem; color: var(--text-light); margin-top: 4px; }
.chat-input-bar { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.chat-input-bar input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; font-family: inherit; }
.chat-input-bar input:focus { outline: none; border-color: var(--primary); }
.btn-send { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }

/* ===== NOTIFICATIONS ===== */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 14px; }
.notif-card.unread { border-left: 4px solid var(--primary); background: var(--primary-light); }
.notif-icon { font-size: 1.5rem; }
.notif-body strong { display: block; font-size: .9rem; }
.notif-body p { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: .75rem; color: var(--text-light); margin-top: 4px; display: block; }

/* ===== PREMIUM PAGE ===== */
.premium-page { max-width: 700px; margin: 0 auto; }
.premium-header { text-align: center; margin-bottom: 32px; }
.premium-header h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.premium-header p { color: var(--text-muted); }
.premium-status-banner {
  background: linear-gradient(135deg, var(--success), #059669); color: #fff;
  border-radius: var(--radius); padding: 14px 20px; margin: -16px auto 28px;
  max-width: 640px; text-align: center; font-size: .9rem; box-shadow: 0 8px 20px rgba(16,185,129,.25);
}
.premium-features { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature-item { font-size: .95rem; font-weight: 500; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.plan-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; position: relative; }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,.1); }
.plan-badge { display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700; background: var(--primary-light); color: var(--primary); margin-bottom: 12px; }
.plan-badge.best { background: var(--primary); color: #fff; }
.plan-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin: 12px 0; }
.plan-price span { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.plan-card p { color: var(--text-muted); font-size: .85rem; margin-bottom: 20px; }
.payment-note { text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ===== CALL ROOM ===== */
.call-room { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 32px; }
.call-user-info { text-align: center; }
.call-avatar { font-size: 5rem; margin-bottom: 12px; }
.call-user-info h2 { font-size: 1.5rem; font-weight: 800; }
.call-user-info p { color: var(--text-muted); }
.call-status { font-size: .9rem; color: var(--text-muted); margin-top: 8px; }
.call-timer { font-size: 2rem; font-weight: 800; color: var(--primary); margin-top: 12px; }
.call-controls { display: flex; gap: 20px; }
.call-btn { width: 60px; height: 60px; border-radius: 50%; border: none; font-size: 1.5rem; cursor: pointer; transition: all .2s; }
.call-btn.mute { background: var(--primary-light); }
.call-btn.end { background: var(--danger); color: #fff; width: 80px; height: 80px; font-size: 1rem; font-weight: 700; }
.call-btn.speaker { background: var(--primary-light); }

/* ===== SETTINGS ===== */
.settings-page { max-width: 600px; }
.settings-page h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.settings-links { display: flex; flex-direction: column; gap: 8px; }
.settings-links a { color: var(--primary); font-size: .9rem; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .auth-left { display: none; }
  .auth-right { width: 100%; }
  .content { padding: 16px; }
  .plans-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .users-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .globe-wrapper { width: 140px; height: 140px; }
  .ring1 { width: 120px; height: 120px; }
  .ring2 { width: 95px; height: 95px; }
  .ring3 { width: 70px; height: 70px; }
}

/* ====paypal ====*/
.btn-paypal {
  background: #FFC439;
  color: #003087;
  font-weight: 700;
  padding: .65rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  width: 100%;
  margin-top: .5rem;
  transition: all .15s;
}
.btn-paypal:hover { background: #f0b429; }