/*
Theme Name: 007AJ Dating Theme
Theme URI: https://007aj.com
Author: 007AJ
Author URI: https://007aj.com
Description: A complete WordPress dating theme — build your own dating site with member profiles, matching, private messaging, membership packages, and photo galleries. No plugins required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ajdating
Tags: dating, social, matchmaking, profiles, messaging, membership
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Primary — romantic pink/rose */
    --ajd-primary: #e11d48;
    --ajd-primary-light: #fb7185;
    --ajd-primary-dark: #be123c;
    --ajd-primary-bg: #fff1f2;

    /* Secondary — warm purple */
    --ajd-secondary: #7c3aed;
    --ajd-secondary-light: #a78bfa;
    --ajd-secondary-dark: #6d28d9;

    /* Accent — gold for premium */
    --ajd-gold: #f59e0b;
    --ajd-gold-light: #fbbf24;
    --ajd-gold-dark: #d97706;

    /* Neutrals */
    --ajd-dark: #0f172a;
    --ajd-gray-900: #1e293b;
    --ajd-gray-800: #334155;
    --ajd-gray-700: #475569;
    --ajd-gray-600: #64748b;
    --ajd-gray-500: #94a3b8;
    --ajd-gray-400: #cbd5e1;
    --ajd-gray-300: #e2e8f0;
    --ajd-gray-200: #f1f5f9;
    --ajd-gray-100: #f8fafc;
    --ajd-white: #ffffff;

    /* Status */
    --ajd-success: #10b981;
    --ajd-warning: #f59e0b;
    --ajd-error: #ef4444;
    --ajd-info: #3b82f6;
    --ajd-online: #22c55e;

    /* Layout */
    --ajd-max-width: 1200px;
    --ajd-radius: 12px;
    --ajd-radius-lg: 16px;
    --ajd-radius-xl: 24px;
    --ajd-radius-full: 999px;
    --ajd-shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
    --ajd-shadow-md: 0 4px 12px rgba(15,23,42,.1);
    --ajd-shadow-lg: 0 12px 32px rgba(15,23,42,.12);
    --ajd-transition: 0.2s ease;

    /* Typography */
    --ajd-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: var(--ajd-font);
    font-size: 16px; line-height: 1.6;
    color: var(--ajd-gray-800);
    background: var(--ajd-gray-100);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ajd-primary); text-decoration: none; transition: color var(--ajd-transition); }
a:hover { color: var(--ajd-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    color: var(--ajd-dark);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

/* ============================================
   LAYOUT
   ============================================ */
.ajd-container {
    max-width: var(--ajd-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.ajd-section {
    padding: 64px 0;
}

.ajd-grid {
    display: grid;
    gap: 24px;
}

.ajd-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.ajd-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ajd-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.ajd-header {
    background: var(--ajd-white);
    border-bottom: 1px solid var(--ajd-gray-300);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--ajd-shadow);
}

.ajd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: var(--ajd-max-width);
    margin: 0 auto;
    height: 68px;
}

.ajd-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ajd-dark);
    letter-spacing: -0.02em;
}

.ajd-logo-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ajd-primary), var(--ajd-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.ajd-nav { display: flex; align-items: center; gap: 6px; }

.ajd-nav a {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ajd-gray-700);
    border-radius: var(--ajd-radius);
    transition: all var(--ajd-transition);
}

.ajd-nav a:hover {
    color: var(--ajd-primary);
    background: var(--ajd-primary-bg);
}

.ajd-nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.ajd-nav-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.ajd-nav-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ajd-primary);
}

.ajd-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ajd-gray-700);
}

/* ============================================
   BUTTONS
   ============================================ */
.ajd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--ajd-font);
    border: none;
    border-radius: var(--ajd-radius);
    cursor: pointer;
    transition: all var(--ajd-transition);
    text-decoration: none;
    line-height: 1.4;
}

.ajd-btn-primary {
    background: var(--ajd-primary);
    color: var(--ajd-white);
}
.ajd-btn-primary:hover {
    background: var(--ajd-primary-dark);
    color: var(--ajd-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225,29,72,.3);
}

.ajd-btn-secondary {
    background: var(--ajd-gray-200);
    color: var(--ajd-gray-800);
}
.ajd-btn-secondary:hover {
    background: var(--ajd-gray-300);
    color: var(--ajd-dark);
}

.ajd-btn-outline {
    background: transparent;
    color: var(--ajd-primary);
    border: 2px solid var(--ajd-primary);
}
.ajd-btn-outline:hover {
    background: var(--ajd-primary);
    color: var(--ajd-white);
}

.ajd-btn-gold {
    background: linear-gradient(135deg, var(--ajd-gold), var(--ajd-gold-dark));
    color: var(--ajd-white);
}
.ajd-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,.4);
}

.ajd-btn-paypal {
    background: #0070ba;
    color: var(--ajd-white);
}
.ajd-btn-paypal:hover {
    background: #005ea6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,112,186,.4);
}
.ajd-btn-paypal i { margin-right: 6px; }

.ajd-stripe-btn i { margin-right: 6px; }

.ajd-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ajd-payment-options .ajd-btn {
    width: 100%;
    justify-content: center;
}

.ajd-btn-sm { padding: 6px 14px; font-size: 13px; }
.ajd-btn-lg { padding: 14px 32px; font-size: 17px; }
.ajd-btn-block { width: 100%; }

/* ============================================
   HERO SECTION
   ============================================ */
.ajd-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 20px 100px;
    text-align: center;
    color: var(--ajd-white);
}

.ajd-hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225,29,72,.15) 0%, transparent 70%);
}

.ajd-hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    color: var(--ajd-white);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
}

.ajd-hero h1 span { color: var(--ajd-primary-light); }

.ajd-hero-subtitle {
    font-size: clamp(18px, 2.4vw, 22px);
    color: var(--ajd-gray-400);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.ajd-hero-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--ajd-radius-lg);
    padding: 6px;
}

.ajd-hero-search select,
.ajd-hero-search input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: none;
    background: transparent;
    color: var(--ajd-white);
    font-family: var(--ajd-font);
    outline: none;
}

.ajd-hero-search select option { color: var(--ajd-dark); background: var(--ajd-white); }
.ajd-hero-search input::placeholder { color: var(--ajd-gray-500); }

.ajd-hero-search .ajd-btn {
    border-radius: var(--ajd-radius);
    padding: 14px 28px;
    flex: none;
}

.ajd-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    position: relative;
}

.ajd-hero-stat {
    text-align: center;
}

.ajd-hero-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--ajd-white);
}

.ajd-hero-stat span {
    font-size: 14px;
    color: var(--ajd-gray-500);
}

/* ============================================
   PROFILE GRID
   ============================================ */
.ajd-profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .ajd-profiles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .ajd-profiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ajd-profiles-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

/* ============================================
   PROFILE CARDS
   ============================================ */
.ajd-profile-card {
    background: var(--ajd-white);
    border-radius: var(--ajd-radius-lg);
    overflow: hidden;
    box-shadow: var(--ajd-shadow);
    transition: all var(--ajd-transition);
    position: relative;
}

.ajd-profile-card:hover {
    box-shadow: var(--ajd-shadow-lg);
    transform: translateY(-4px);
}

.ajd-profile-card-photo {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
    background: var(--ajd-gray-200);
}

.ajd-profile-card-photo img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.ajd-profile-card-online {
    position: absolute;
    top: 12px; right: 12px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--ajd-online);
    border: 3px solid var(--ajd-white);
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}

.ajd-profile-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    color: var(--ajd-white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--ajd-radius-full);
}

.ajd-profile-card-badge.verified {
    background: var(--ajd-info);
}

.ajd-profile-card-badge.premium {
    background: var(--ajd-gold);
}

.ajd-profile-card-info {
    padding: 16px;
}

.ajd-profile-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ajd-dark);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ajd-profile-card-name .age {
    font-weight: 400;
    color: var(--ajd-gray-600);
}

.ajd-profile-card-location {
    font-size: 14px;
    color: var(--ajd-gray-600);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ajd-profile-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    justify-content: center;
}

.ajd-profile-card-actions .ajd-btn {
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

/* Badge/Indicator classes used in templates */
.ajd-online-indicator {
    position: absolute;
    top: 12px; right: 12px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--ajd-online, #22c55e);
    border: 3px solid var(--ajd-white);
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
    z-index: 2;
}

.ajd-verified-badge {
    position: absolute;
    bottom: 12px; right: 12px;
    color: #3b82f6;
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
    z-index: 2;
}

.ajd-vip-badge,
.ajd-gold-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--ajd-radius-full, 9999px);
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

.ajd-vip-badge {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
}

.ajd-gold-badge {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
}

.ajd-action-like,
.ajd-action-wink {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all var(--ajd-transition, .2s);
}

.ajd-action-like {
    background: var(--ajd-primary-bg, #fef2f2);
    color: var(--ajd-primary, #e11d48);
}
.ajd-action-like:hover,
.ajd-action-like.liked {
    background: var(--ajd-primary, #e11d48);
    color: var(--ajd-white, #fff);
}

.ajd-action-wink {
    background: var(--ajd-gray-100, #f3f4f6);
    color: var(--ajd-gray-700);
    border: 1px solid var(--ajd-gray-300);
}
.ajd-action-wink:hover {
    background: var(--ajd-secondary);
    color: var(--ajd-white);
    border-color: var(--ajd-secondary);
}

/* ============================================
   MEMBERSHIP PLANS
   ============================================ */
.ajd-plans,
.ajd-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.ajd-plan-card {
    background: var(--ajd-white);
    border: 2px solid var(--ajd-gray-300);
    border-radius: var(--ajd-radius-xl);
    padding: 32px;
    text-align: center;
    transition: all var(--ajd-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ajd-plan-card.featured,
.ajd-plan-card.ajd-plan-featured {
    border-color: var(--ajd-primary);
    box-shadow: 0 0 0 1px var(--ajd-primary), var(--ajd-shadow-lg);
    transform: scale(1.02);
}

.ajd-plan-card.ajd-plan-current {
    border-color: var(--ajd-gray-400);
    opacity: 0.85;
}

.ajd-plan-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--ajd-primary);
    color: var(--ajd-white);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: var(--ajd-radius-full);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ajd-plan-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--ajd-primary);
    color: var(--ajd-white);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: var(--ajd-radius-full);
    letter-spacing: 0.04em;
}

.ajd-plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ajd-dark);
    margin-bottom: 8px;
}

.ajd-plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--ajd-dark);
    margin-bottom: 4px;
}

.ajd-plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--ajd-gray-600);
}

.ajd-plan-period {
    font-size: 14px;
    color: var(--ajd-gray-500);
    margin-bottom: 24px;
}

.ajd-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.ajd-plan-features li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--ajd-gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ajd-plan-features li::before {
    content: '✓';
    color: var(--ajd-success);
    font-weight: 700;
    font-size: 16px;
    flex: none;
}

/* Hide pseudo-check when Font Awesome icon is used */
.ajd-plan-features li i.fas { color: var(--ajd-success); flex: none; }
.ajd-plan-features li:has(> i.fas)::before { display: none; }

.ajd-plan-features li.disabled {
    color: var(--ajd-gray-400);
    text-decoration: line-through;
}

.ajd-plan-features li.disabled::before {
    content: '✕';
    color: var(--ajd-gray-400);
}

.ajd-plan-header { margin-bottom: 20px; }
.ajd-plan-desc {
    font-size: 14px;
    color: var(--ajd-gray-600);
    margin-top: 8px;
}
.ajd-plan-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--ajd-dark);
}
.ajd-plan-period {
    font-size: 16px;
    font-weight: 500;
    color: var(--ajd-gray-500);
}
.ajd-plan-action {
    margin-top: auto;
    padding-top: 20px;
}
.ajd-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ajd-dark);
    margin-bottom: 8px;
}
.ajd-section-subtitle {
    font-size: 16px;
    color: var(--ajd-gray-600);
    margin-bottom: 40px;
}

/* ============================================
   HOW IT WORKS STEPS
   ============================================ */
.ajd-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.ajd-step-card {
    text-align: center;
    padding: 32px 20px;
}
.ajd-step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
}
.ajd-step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ajd-dark);
}
.ajd-step-card p {
    color: var(--ajd-gray-500);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   MESSAGING
   ============================================ */
.ajd-messages-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    height: calc(100vh - 68px - 40px);
    background: var(--ajd-white);
    border-radius: var(--ajd-radius-lg);
    overflow: hidden;
    box-shadow: var(--ajd-shadow);
}

.ajd-conversations-list {
    border-right: 1px solid var(--ajd-gray-300);
    overflow-y: auto;
}

.ajd-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ajd-gray-200);
    cursor: pointer;
    transition: background var(--ajd-transition);
}

.ajd-conversation-item:hover,
.ajd-conversation-item.active {
    background: var(--ajd-primary-bg);
}

.ajd-conversation-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    position: relative;
}

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

.ajd-conversation-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ajd-dark);
    margin-bottom: 2px;
}

.ajd-conversation-preview {
    font-size: 13px;
    color: var(--ajd-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ajd-conversation-time {
    font-size: 12px;
    color: var(--ajd-gray-500);
    flex: none;
}

.ajd-chat-area {
    display: flex;
    flex-direction: column;
}

.ajd-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--ajd-gray-300);
    background: var(--ajd-white);
}

.ajd-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ajd-message {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: var(--ajd-radius-lg);
    font-size: 15px;
    line-height: 1.5;
}

.ajd-message-sent,
.ajd-message.sent {
    align-self: flex-end;
    background: var(--ajd-primary);
    color: var(--ajd-white);
    border-bottom-right-radius: 4px;
}

.ajd-message-received,
.ajd-message.received {
    align-self: flex-start;
    background: var(--ajd-gray-200);
    color: var(--ajd-dark);
    border-bottom-left-radius: 4px;
}

.ajd-message-bubble {
    line-height: 1.5;
    word-wrap: break-word;
}

.ajd-message-time {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.6;
}

.ajd-message-sent .ajd-message-time { text-align: right; }

/* Conversations sidebar */
.ajd-conversations-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ajd-gray-300);
    background: var(--ajd-gray-50);
}
.ajd-conversations-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--ajd-dark);
}

.ajd-conversation-photo {
    position: relative;
    flex: none;
}
.ajd-conversation-photo img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ajd-conversation-item.unread {
    background: var(--ajd-primary-bg);
}
.ajd-conversation-item.unread .ajd-conversation-info strong {
    color: var(--ajd-primary);
}

.ajd-conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: none;
}

.ajd-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--ajd-primary);
    color: var(--ajd-white);
    font-size: 11px;
    font-weight: 700;
}

.ajd-online-dot {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ajd-success);
    border: 2px solid var(--ajd-white);
}

/* Chat header user link */
.ajd-chat-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ajd-dark);
}
.ajd-chat-user img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.ajd-chat-user strong { font-size: 15px; }
.ajd-online-text {
    font-size: 12px;
    color: var(--ajd-success);
}
.ajd-offline-text {
    font-size: 12px;
    color: var(--ajd-gray-500);
}

/* Chat input */
.ajd-chat-input {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--ajd-gray-300);
    background: var(--ajd-white);
}

.ajd-chat-input textarea,
.ajd-chat-input input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--ajd-gray-300);
    border-radius: var(--ajd-radius);
    font-size: 15px;
    font-family: var(--ajd-font);
    outline: none;
    resize: none;
    max-height: 120px;
    transition: border-color var(--ajd-transition);
}

.ajd-chat-input textarea:focus,
.ajd-chat-input input:focus {
    border-color: var(--ajd-primary);
}

/* Free-member upgrade banner in chat */
.ajd-chat-upgrade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--ajd-gray-300);
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.ajd-chat-upgrade p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    font-weight: 500;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.ajd-profile-header {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    padding: 40px 20px 120px;
}

.ajd-profile-cover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.ajd-profile-main-photo {
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 4px solid var(--ajd-white);
    object-fit: cover;
    margin: -80px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: var(--ajd-shadow-lg);
}

.ajd-profile-details {
    text-align: center;
    padding: 16px 20px 32px;
}

.ajd-profile-name-age {
    font-size: 28px;
    font-weight: 800;
    color: var(--ajd-dark);
    margin-bottom: 4px;
}

.ajd-profile-location-text {
    font-size: 16px;
    color: var(--ajd-gray-600);
    margin-bottom: 16px;
}

.ajd-profile-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ajd-profile-about {
    background: var(--ajd-white);
    border-radius: var(--ajd-radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--ajd-shadow);
}

.ajd-profile-about h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.ajd-profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.ajd-profile-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--ajd-radius);
    cursor: pointer;
    transition: opacity var(--ajd-transition);
}

.ajd-profile-gallery img:hover { opacity: .85; }

/* ============================================
   SEARCH FILTERS
   ============================================ */
.ajd-search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.ajd-search-sidebar {
    background: var(--ajd-white);
    border-radius: var(--ajd-radius-lg);
    padding: 24px;
    box-shadow: var(--ajd-shadow);
    height: fit-content;
    position: sticky;
    top: 88px;
}

.ajd-filter-group {
    margin-bottom: 24px;
}

.ajd-filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ajd-dark);
    margin-bottom: 8px;
}

.ajd-filter-group select,
.ajd-filter-group input[type="text"],
.ajd-filter-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ajd-gray-300);
    border-radius: var(--ajd-radius);
    font-size: 14px;
    font-family: var(--ajd-font);
    color: var(--ajd-gray-800);
    outline: none;
    transition: border-color var(--ajd-transition);
}

.ajd-filter-group select:focus,
.ajd-filter-group input:focus {
    border-color: var(--ajd-primary);
}

.ajd-age-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ajd-age-range input { flex: 1; }
.ajd-age-range span { color: var(--ajd-gray-500); }

/* ============================================
   DASHBOARD
   ============================================ */
.ajd-dashboard {
    padding: 32px 0;
    background: var(--ajd-gray-50);
    min-height: calc(100vh - 68px);
}

.ajd-dashboard h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ajd-dark);
    margin-bottom: 20px;
}

.ajd-dashboard h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ajd-dark);
    margin-bottom: 12px;
}

.ajd-dashboard .description {
    font-size: 13px;
    color: var(--ajd-gray-500);
    margin-top: 4px;
}

.ajd-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    min-height: calc(100vh - 68px - 40px);
}

.ajd-dashboard-sidebar {
    background: var(--ajd-white);
    border-radius: var(--ajd-radius-lg);
    box-shadow: var(--ajd-shadow);
    padding: 16px 0;
    height: fit-content;
    position: sticky;
    top: 88px;
}

.ajd-dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ajd-gray-700);
    transition: all var(--ajd-transition);
}

.ajd-dashboard-nav a:hover,
.ajd-dashboard-nav a.active {
    background: var(--ajd-primary-bg);
    color: var(--ajd-primary);
}

.ajd-dashboard-nav a .badge {
    margin-left: auto;
    background: var(--ajd-primary);
    color: var(--ajd-white);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--ajd-radius-full);
}

.ajd-dashboard-content {
    min-width: 0;
}

.ajd-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ajd-stat-card {
    background: var(--ajd-white);
    border-radius: var(--ajd-radius-lg);
    padding: 20px;
    box-shadow: var(--ajd-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}

.ajd-stat-card .label,
.ajd-stat-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ajd-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0;
}

.ajd-stat-card .value,
.ajd-stat-card-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--ajd-dark);
    line-height: 1.2;
}

.ajd-stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ajd-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ajd-stat-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Dashboard User Profile (sidebar) */
.ajd-dashboard-user {
    text-align: center;
    padding: 20px 16px;
    border-bottom: 1px solid var(--ajd-gray-200);
    margin-bottom: 8px;
}
.ajd-dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ajd-primary);
    margin-bottom: 10px;
}
.ajd-dashboard-user h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ajd-dark);
    margin-bottom: 6px;
}

/* Membership Badges */
.ajd-membership-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--ajd-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ajd-badge-free {
    background: var(--ajd-gray-100);
    color: var(--ajd-gray-600);
}
.ajd-badge-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}
.ajd-badge-vip {
    background: linear-gradient(135deg, var(--ajd-secondary), #7c3aed);
    color: var(--ajd-white);
}

/* Badge Count (nav counters) */
.ajd-badge-count {
    margin-left: auto;
    background: var(--ajd-primary);
    color: var(--ajd-white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--ajd-radius-full);
    min-width: 20px;
    text-align: center;
}

/* Notifications */
.ajd-notification {
    padding: 14px 20px;
    border-radius: var(--ajd-radius-lg);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}
.ajd-notification p { margin: 0; }
.ajd-notification-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.ajd-notification-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.ajd-notification-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.ajd-notification-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   FORMS
   ============================================ */
.ajd-form-group {
    margin-bottom: 20px;
}

.ajd-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ajd-dark);
    margin-bottom: 6px;
}

.ajd-form-group input,
.ajd-form-group select,
.ajd-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ajd-gray-300);
    border-radius: var(--ajd-radius);
    font-size: 15px;
    font-family: var(--ajd-font);
    color: var(--ajd-gray-800);
    outline: none;
    transition: border-color var(--ajd-transition);
}

.ajd-form-group input:focus,
.ajd-form-group select:focus,
.ajd-form-group textarea:focus {
    border-color: var(--ajd-primary);
    box-shadow: 0 0 0 3px rgba(225,29,72,.1);
}

.ajd-form-group textarea { resize: vertical; min-height: 100px; }

.ajd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.ajd-auth-wrap,
.ajd-auth-section {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    padding: 40px 20px;
}

.ajd-auth-card {
    background: var(--ajd-white);
    border-radius: var(--ajd-radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 560px;
    box-shadow: var(--ajd-shadow-lg);
}

.ajd-auth-card h1,
.ajd-auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 26px;
}

.ajd-auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.ajd-auth-header p {
    color: var(--ajd-gray-500);
    font-size: 15px;
    margin-top: 8px;
}

.ajd-auth-card .subtitle {
    text-align: center;
    color: var(--ajd-gray-500);
    margin-bottom: 28px;
    font-size: 15px;
}

.ajd-auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--ajd-gray-500);
    font-size: 13px;
}

.ajd-auth-divider::before,
.ajd-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ajd-gray-300);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.ajd-notice {
    padding: 14px 18px;
    border-radius: var(--ajd-radius);
    font-size: 15px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ajd-notice-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ajd-notice-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ajd-notice-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   FOOTER
   ============================================ */
.ajd-footer {
    background: var(--ajd-dark);
    color: var(--ajd-gray-400);
    padding: 48px 20px 24px;
}

.ajd-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 32px;
    max-width: var(--ajd-max-width);
    margin: 0 auto;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ajd-gray-800);
}

.ajd-footer h4 {
    color: var(--ajd-white);
    font-size: 16px;
    margin-bottom: 16px;
}

.ajd-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ajd-footer li {
    margin-bottom: 8px;
}

.ajd-footer a {
    color: var(--ajd-gray-500);
    font-size: 14px;
    transition: color var(--ajd-transition);
}

.ajd-footer a:hover { color: var(--ajd-white); }

.ajd-footer-bottom {
    max-width: var(--ajd-max-width);
    margin: 24px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--ajd-gray-600);
}

/* ============================================
   ONLINE INDICATOR
   ============================================ */
.ajd-online-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ajd-online);
    display: inline-block;
    animation: ajd-pulse 2s infinite;
}

@keyframes ajd-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ============================================
   WINK ANIMATION
   ============================================ */
.ajd-wink-sent {
    animation: ajd-wink 0.6s ease;
}

@keyframes ajd-wink {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ajd-mobile-toggle { display: block; }

    .ajd-nav {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--ajd-white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--ajd-gray-300);
        box-shadow: var(--ajd-shadow-md);
    }

    .ajd-nav.open { display: flex; }
    .ajd-nav-auth { margin-left: 0; width: 100%; }
    .ajd-nav-auth .ajd-btn { width: 100%; }

    .ajd-hero-stats { gap: 20px; flex-wrap: wrap; }
    .ajd-hero-search { flex-direction: column; }

    .ajd-search-layout { grid-template-columns: 1fr; }
    .ajd-search-sidebar { position: static; }

    .ajd-steps-grid { grid-template-columns: 1fr; max-width: 400px; }

    .ajd-messages-layout { grid-template-columns: 1fr; }
    .ajd-conversations-list { max-height: 200px; }

    .ajd-dashboard-layout { grid-template-columns: 1fr; }
    .ajd-dashboard-sidebar { position: static; }

    .ajd-form-row { grid-template-columns: 1fr; }

    .ajd-plans,
    .ajd-plans-grid { grid-template-columns: 1fr; }
    .ajd-plan-card.featured,
    .ajd-plan-card.ajd-plan-featured { transform: none; }

    .ajd-profile-card-photo { padding-top: 100%; }
}

@media (max-width: 480px) {
    .ajd-hero { padding: 48px 16px 64px; }
    .ajd-hero h1 { font-size: 32px; }
    .ajd-hero-subtitle { font-size: 16px; }
    .ajd-auth-card { padding: 28px 20px; }
}

/* ============================================
   ADMIN BAR OFFSET
   ============================================ */
body.admin-bar .ajd-header { top: 32px; }

@media (max-width: 782px) {
    body.admin-bar .ajd-header { top: 46px; }
}
