:root {
  --primary: #B39A72;
  --secondary: #C7A86A;
  --accent: #C7A86A;
  --accent-purple: #B39A72;
  --bg: #F7F4EE;
  --card-bg: #FFFFFF;
  --text: #2E3138;
  --text-muted: #4A4A4A;
  --border: #E2E0DA;
  --nav-bg: #B39A72;
  --nav-hover: #F7F4EE;
  --online: #10B981;
  --offline: #CBD5E1;
  --verified: #C7A86A;
  --premium: #C7A86A;
  --gold-hover: #B08B4F;
  --dark: #2E3138;
  --ivory: #F7F4EE;
}

* { box-sizing: border-box; }

html { font-size: 14px; position: relative; min-height: 100%; }

@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: 'Inter', 'Segoe UI', 'Poppins', sans-serif;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 { color: var(--text); }
p { color: var(--text-muted); }

/* ===== NAVBAR ===== */
.navbar-tta {
  background: var(--nav-bg);
  padding: 0.75rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.navbar-tta .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-tta .navbar-brand .logo-icon { color: var(--secondary); }
.navbar-tta .navbar-brand img { vertical-align: middle; }
.navbar-tta .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all .2s;
}
.navbar-tta .nav-link:hover { color: var(--nav-hover) !important; background: rgba(255,255,255,.12); }
.navbar-tta .nav-link.active { color: #fff !important; background: rgba(255,255,255,.12); }

/* ===== BUTTONS ===== */
.btn-primary-tta { background: var(--secondary); color: #fff; border: none; padding: .625rem 1.5rem; border-radius: 10px; font-weight: 600; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary-tta:hover { background: var(--gold-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(199,168,106,.35); }

.btn-interest { background: var(--primary); color: #fff; border: none; padding: .625rem 1.5rem; border-radius: 10px; font-weight: 600; transition: all .2s; }
.btn-interest:hover { background: #9A8460; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(179,154,114,.35); }

.btn-success-tta { background: var(--secondary); color: #fff; border: none; padding: .625rem 1.5rem; border-radius: 10px; font-weight: 600; transition: all .2s; }
.btn-success-tta:hover { background: var(--gold-hover); color: #fff; }

.btn-secondary-tta { background: #F1F5F9; color: #334155; border: 1px solid var(--border); padding: .625rem 1.5rem; border-radius: 10px; font-weight: 600; transition: all .2s; }
.btn-secondary-tta:hover { background: #E2E8F0; color: #334155; }

.btn-outline-tta { background: transparent; color: var(--secondary); border: 2px solid var(--secondary); padding: .5rem 1.25rem; border-radius: 10px; font-weight: 600; transition: all .2s; }
.btn-outline-tta:hover { background: var(--secondary); color: #fff; }

/* ===== CARDS ===== */
.card-tta {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: 24px;
  border: none;
  transition: all .3s;
}
.card-tta:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(135deg, rgba(179,154,114,0.85) 0%, rgba(154,132,96,0.80) 50%, rgba(107,91,69,0.85) 100%),
              url('https://images.unsplash.com/photo-1529636798458-27482e9353ee?w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.hero-gradient h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-gradient p { font-size: 1.15rem; opacity: .95; max-width: 600px; margin: 0 auto 2rem; text-shadow: 0 1px 8px rgba(0,0,0,0.25); }

/* ===== DASHBOARD STAT CARDS ===== */
.stat-card {
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-icon { font-size: 2.5rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card .stat-label { font-size: .85rem; opacity: .9; }
.stat-blue { background: linear-gradient(135deg, #B39A72, #9A8460); }
.stat-pink { background: linear-gradient(135deg, #C7A86A, #B08B4F); }
.stat-purple { background: linear-gradient(135deg, #8B7355, #6B5B45); }
.stat-cyan { background: linear-gradient(135deg, #C7A86A, #9A8460); }
.stat-green { background: linear-gradient(135deg, #B39A72, #8B7355); }
.stat-amber { background: linear-gradient(135deg, #C7A86A, #B08B4F); }

/* ===== MATCH PROFILE CARD ===== */
.match-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transition: all .3s;
  border: none;
}
.match-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); transform: translateY(-4px); }
.match-card .match-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #E2E8F0;
}
.match-card .match-info { padding: 16px; }
.match-card .match-name { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.match-card .match-meta { font-size: .875rem; color: #64748B; margin-bottom: 8px; }
.match-card .match-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.95);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 700;
}

/* ===== STATUS BADGES ===== */
.badge-online { background: var(--online); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: .75rem; }
.badge-offline { background: var(--offline); color: #475569; padding: 3px 10px; border-radius: 20px; font-size: .75rem; }
.badge-verified { background: var(--verified); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: .75rem; }
.badge-premium { background: var(--premium); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: .75rem; }

/* ===== COMPATIBILITY RING ===== */
.compatibility-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
}
.compat-high { background: var(--accent); }
.compat-medium { background: var(--premium); }
.compat-low { background: #94a3b8; }

/* ===== FORMS ===== */
.form-tta { margin-bottom: 1.5rem; }
.form-tta label { font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; font-size: .9rem; }
.form-tta .form-control, .form-tta .form-select {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: .625rem .875rem;
  font-size: .95rem;
  transition: all .2s;
}
.form-tta .form-control:focus, .form-tta .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(199,168,106,.15);
  outline: none;
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== CHAT ===== */
.chat-container { display: flex; flex-direction: column; height: calc(100vh - 200px); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: #F1F5F9; border-radius: 12px; }
.chat-message { margin-bottom: 12px; max-width: 70%; }
.chat-message.sent { margin-left: auto; }
.chat-message .msg-bubble { padding: 10px 16px; border-radius: 16px; font-size: .95rem; }
.chat-message.sent .msg-bubble { background: var(--secondary); color: #fff; border-bottom-right-radius: 4px; }
.chat-message.received .msg-bubble { background: #fff; color: var(--text); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.chat-input-area { padding: 16px 0; display: flex; gap: 10px; }

/* ===== INTEREST STATUS ===== */
.interest-pending { background: #FEF3C7; color: #92400E; padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.interest-accepted { background: #D1FAE5; color: #065F46; padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.interest-declined { background: #FEE2E2; color: #991B1B; padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; }

/* ===== NOTIFICATION ===== */
.notification-item { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; transition: background .2s; }
.notification-item:hover { background: #F1F5F9; }
.notification-item.unread { background: #FDF9F3; }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }

/* ===== PROFILE VIEW ===== */
.profile-header {
  background: linear-gradient(135deg, #B39A72 0%, #C7A86A 100%);
  color: #fff;
  padding: 40px 0;
  border-radius: 0 0 24px 24px;
}
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.gallery-thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; cursor: pointer; transition: transform .2s; }
.gallery-thumb:hover { transform: scale(1.03); }

/* ===== SUBSCRIPTION PLANS ===== */
.plan-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  background: #fff;
  border: 1px solid #E2E0DA;
  position: relative;
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.plan-card .plan-header {
  padding: 32px 24px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.plan-card .plan-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.plan-card .plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
  backdrop-filter: blur(4px);
}
.plan-card .plan-header h4 {
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: .02em;
}
.plan-card .plan-price {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.plan-card .plan-price small {
  font-size: 1rem;
  font-weight: 500;
  opacity: .8;
}
.plan-card .plan-body {
  padding: 24px 24px 28px;
  background: #fff;
}
.plan-card .plan-desc {
  font-size: .85rem;
  color: #64748B;
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}
.plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.plan-card .plan-features li {
  padding: 7px 0;
  font-size: .875rem;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan-card .plan-features li .check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  margin-top: 1px;
}

/* Plan-specific colors */
.plan-free .plan-header { background: linear-gradient(135deg, #64748B 0%, #475569 100%); }
.plan-free .check-icon { background: #E2E8F0; color: #475569; }

.plan-silver .plan-header { background: linear-gradient(135deg, #94A3B8 0%, #64748B 100%); }
.plan-silver .check-icon { background: #E2E8F0; color: #475569; }

.plan-gold .plan-header { background: linear-gradient(135deg, #C7A86A 0%, #B08B4F 100%); }
.plan-gold .check-icon { background: #FDF3E0; color: #B08B4F; }

.plan-platinum .plan-header { background: linear-gradient(135deg, #2E3138 0%, #1a1c20 100%); }
.plan-platinum .check-icon { background: #E8E8E8; color: #2E3138; }

/* Featured (most popular) */
.plan-featured {
  border: 2px solid #C7A86A;
  box-shadow: 0 8px 36px rgba(199,168,106,.2);
}
.plan-featured:hover {
  box-shadow: 0 20px 50px rgba(199,168,106,.25);
}
.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #C7A86A, #B08B4F);
  color: #fff;
  padding: 6px 24px;
  border-radius: 0 0 12px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(199,168,106,.3);
}

/* Current plan */
.plan-current { border-color: #10B981; }
.plan-current .plan-current-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #10B981;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  z-index: 2;
}

/* Billing toggle */
.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #E2E0DA;
}
.billing-toggle-wrap .switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.billing-toggle-wrap .switch input { opacity: 0; width: 0; height: 0; }
.billing-toggle-wrap .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #CBD5E1;
  transition: .3s;
}
.billing-toggle-wrap .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: .3s;
  border-radius: 50%;
}
.billing-toggle-wrap .switch input:checked + .slider { background: var(--secondary); }
.billing-toggle-wrap .switch input:checked + .slider:before { transform: translateX(24px); }
.billing-toggle-wrap .slider.round { border-radius: 26px; }

/* Active sub banner */
.active-sub-banner {
  background: linear-gradient(135deg, #FDF9F3 0%, #FFFDF8 100%);
  border: 2px solid #C7A86A;
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== FOOTER ===== */
.footer-tta { background: var(--dark); color: rgba(255,255,255,.7); padding: 30px 0; margin-top: 60px; }
.footer-tta a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-tta a:hover { color: #fff; }

/* ===== MISC ===== */
.text-primary-tta { color: var(--primary) !important; }
.text-secondary-tta { color: var(--secondary) !important; }
.text-accent-tta { color: var(--accent) !important; }
.bg-primary-tta { background: var(--primary) !important; }
.bg-secondary-tta { background: var(--secondary) !important; }
.rounded-tta { border-radius: 18px !important; }
.shadow-tta { box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.cursor-pointer { cursor: pointer; }
.no-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E2E8F0;
  color: #94a3b8;
  font-size: 3rem;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar { background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.filter-sidebar h5 { font-weight: 700; margin-bottom: 1rem; color: var(--text); }

/* ===== ADMIN ===== */
.admin-sidebar { background: var(--dark); min-height: calc(100vh - 60px); padding: 20px 0; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.8); padding: 10px 16px; border-radius: 8px; margin: 2px 8px; font-size: .9rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-content { padding: 24px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid #E2E8F0; background: #fff; transition: transform .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.stat-card .stat-icon { font-size: 1.8rem; line-height: 1; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-card .stat-label { font-size: .75rem; color: #64748B; text-transform: uppercase; letter-spacing: .03em; }
.stat-blue { background: #FDF9F3; border-color: #E8D5B7; }
.stat-blue .stat-value, .stat-blue .stat-icon { color: #B39A72; }
.stat-green { background: #FDF9F3; border-color: #E8D5B7; }
.stat-green .stat-value, .stat-green .stat-icon { color: #C7A86A; }
.stat-amber { background: #FDF9F3; border-color: #E8D5B7; }
.stat-amber .stat-value, .stat-amber .stat-icon { color: #B08B4F; }
.stat-pink { background: #FDF9F3; border-color: #E8D5B7; }
.stat-pink .stat-value, .stat-pink .stat-icon { color: #C7A86A; }
.stat-purple { background: #FDF9F3; border-color: #E8D5B7; }
.stat-purple .stat-value, .stat-purple .stat-icon { color: #8B7355; }
.stat-cyan { background: #FDF9F3; border-color: #E8D5B7; }
.stat-cyan .stat-value, .stat-cyan .stat-icon { color: #B39A72; }
.stat-red { background: #FEE2E2; border-color: #FECACA; }
.stat-red .stat-value, .stat-red .stat-icon { color: #EF4444; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== TIMELINE ===== */
.timeline-tta { position: relative; padding-left: 8px; }
.timeline-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: -8px; width: 2px; background: #E2E8F0; }
.timeline-item.completed:not(:last-child)::before { background: var(--accent); }
.timeline-item.current:not(:last-child)::before { background: linear-gradient(180deg, var(--secondary), #E2E8F0); }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; z-index: 1; }
.timeline-item.completed .timeline-dot { background: var(--accent); color: #fff; }
.timeline-item.current .timeline-dot { background: var(--secondary); color: #fff; box-shadow: 0 0 0 4px rgba(199,168,106,.25); }
.timeline-item.pending .timeline-dot { background: #E2E8F0; color: #94a3b8; }
.timeline-content { padding-top: 4px; }
.timeline-item.pending .timeline-content { opacity: .5; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ===== HOMEPAGE ===== */
.feature-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-it-works-card { position: relative; overflow: hidden; }
.how-it-works-card .step-number {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 4rem;
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1;
  z-index: 0;
}
.how-it-works-card > * { position: relative; z-index: 1; }
.why-choose-card { border-top: 3px solid transparent; transition: all .3s; }
.why-choose-card:hover { border-top-color: var(--secondary); }
.match-tag {
  display: inline-block;
  background: #F1F5F9;
  color: #475569;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.match-badge svg { vertical-align: -1px; margin-right: 2px; }
.no-photo-placeholder svg { opacity: .4; }