/**
 * FlirtIA - Styles Principaux
 * Design moderne, élégant et romantique
 */

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f48fb1;
    --accent: #ff4081;
    --secondary: #7c4dff;
    --success: #00c853;
    --warning: #ffab00;
    --danger: #ff1744;
    --info: #00b0ff;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --black: #000000;

    --gradient-primary: linear-gradient(135deg, #e91e63 0%, #ff4081 50%, #ff6e40 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-card: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(124, 77, 255, 0.05) 100%);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(233, 30, 99, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.heart-loader {
    color: var(--primary);
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-spacer {
    height: 72px;
}

#mainNav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark) !important;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(233,30,99,0.3);
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(233,30,99,0.08);
    color: var(--primary) !important;
}

.btn-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    border: none;
    color: var(--dark);
    transition: var(--transition);
}

.btn-theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* User avatar in nav */
.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.premium-badge {
    color: var(--warning);
    font-size: 0.75rem;
}

/* Notifications */
.badge-notif {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-dropdown {
    width: 340px;
    max-height: 450px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.notification-item.unread {
    background: rgba(233,30,99,0.03);
    border-left: 3px solid var(--primary);
}

.notification-item:hover {
    background: var(--gray-light);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.notif-text {
    font-size: 0.8rem;
    color: var(--gray);
}

.notif-time {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(233,30,99,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(124,77,255,0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-badge .badge {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions {
    margin-bottom: 3rem;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(233,30,99,0.4);
    transition: var(--transition);
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(233,30,99,0.6);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Hero Cards (Character previews) */
.hero-visual {
    position: relative;
    height: 500px;
}

.hero-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-card {
    position: absolute;
    width: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.hero-card.card-1 {
    top: 10%;
    left: 20%;
    z-index: 3;
}

.hero-card.card-2 {
    top: 30%;
    left: 50%;
    z-index: 2;
    animation-delay: -2s;
}

.hero-card.card-3 {
    top: 50%;
    left: 10%;
    z-index: 1;
    animation-delay: -4s;
}

.hero-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hero-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.hero-card-name {
    font-weight: 600;
    font-size: 1rem;
}

.hero-card-age {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-card-typing {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 3px;
    background: rgba(0,0,0,0.5);
    padding: 6px 10px;
    border-radius: 20px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    opacity: 0.7;
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========================================
   SECTIONS COMMUNES
   ======================================== */
section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(233,30,99,0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   CHARACTER CARDS
   ======================================== */
.characters-section {
    background: var(--white);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.characters-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.character-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.character-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.character-card:hover .character-image img {
    transform: scale(1.05);
}

.character-image-large {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.character-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.character-card-large:hover .character-image-large img {
    transform: scale(1.05);
}

.character-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.character-card:hover .character-overlay,
.character-card-large:hover .character-overlay {
    opacity: 1;
}

.character-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.character-badge.premium {
    background: var(--gradient-primary);
    color: var(--white);
}

.character-badge.featured {
    background: var(--warning);
    color: var(--dark);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.character-info {
    padding: 1.25rem;
}

.character-info-large {
    padding: 1.25rem;
}

.character-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.character-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.character-meta span {
    display: flex;
    align-items: center;
}

.character-bio {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background: rgba(233,30,99,0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.character-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-light);
    font-size: 0.8rem;
    color: var(--gray);
}

.btn-chat,
.btn-chat-lg {
    border-radius: 50px;
    font-weight: 600;
}

.btn-favorite {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-favorite:hover,
.btn-favorite.active {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
    transform: scale(1.1);
}

/* ========================================
   FEATURES
   ======================================== */
.features-section {
    background: var(--light);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(233,30,99,0.25);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works-section {
    background: var(--white);
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(233,30,99,0.08);
    line-height: 1;
    margin-bottom: -1.5rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-section {
    background: var(--light);
}

.pricing-row {
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.pricing-card.current {
    border-color: var(--success);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
}

.current-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    margin: 1rem 0;
}

.pricing-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--gray);
}

.save-badge {
    display: inline-block;
    background: rgba(0,200,83,0.1);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.pricing-body {
    flex: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li i {
    font-size: 0.8rem;
}

.pricing-features li i.fa-check {
    color: var(--success);
}

.pricing-features li i.fa-times {
    color: var(--gray-light);
}

.pricing-features li.disabled {
    color: var(--gray-light);
}

.pricing-footer {
    margin-top: 1.5rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
    background: var(--white);
}

.testimonial-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--warning);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-name {
    display: block;
    font-weight: 600;
}

.author-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 0;
}

.cta-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-glow);
}

.cta-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--light);
    padding: 2rem 0;
}

.auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.auth-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.auth-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-glow);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: 0.875rem;
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    padding: 0;
    z-index: 5;
}

.password-strength {
    margin-top: -0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--gray-light);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: var(--transition);
    width: 0;
}

.strength-fill.weak { width: 33%; background: var(--danger); }
.strength-fill.medium { width: 66%; background: var(--warning); }
.strength-fill.strong { width: 100%; background: var(--success); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    color: var(--light);
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light) !important;
    padding-left: 5px;
}

.footer-newsletter-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-newsletter .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter .btn {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.copyright,
.made-with {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.btn-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-section {
    padding: 2rem 0;
}

.dashboard-welcome {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
}

.dashboard-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.btn-premium {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-premium:hover {
    background: var(--white);
    color: var(--primary);
}

.badge-premium {
    background: rgba(255,255,255,0.2);
    color: var(--warning);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.dashboard-stats {
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.bg-primary { background: var(--gradient-primary); }
.stat-icon.bg-danger { background: linear-gradient(135deg, #ff1744, #ff6e40); }
.stat-icon.bg-success { background: linear-gradient(135deg, #00c853, #69f0ae); }
.stat-icon.bg-warning { background: linear-gradient(135deg, #ffab00, #ffd740); }

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.dashboard-card .card-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-light);
}

.dashboard-card .card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

/* Conversation list */
.conversation-list {
    max-height: 500px;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.conversation-item:hover {
    background: rgba(233,30,99,0.03);
}

.conv-avatar {
    position: relative;
    flex-shrink: 0;
}

.conv-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

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

.conv-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.conv-preview {
    font-size: 0.85rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-meta {
    text-align: right;
    flex-shrink: 0;
}

.conv-time {
    font-size: 0.75rem;
    color: var(--gray);
}

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

.status-dot.online {
    background: var(--success);
}

/* Favorite list */
.favorite-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.favorite-item:hover {
    background: var(--gray-light);
}

.favorite-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fav-info {
    flex: 1;
}

.fav-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.fav-status {
    font-size: 0.75rem;
    color: var(--gray);
}

.fav-status i {
    font-size: 0.5rem;
    color: var(--success);
}

/* Suggestion list */
.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.suggestion-item:hover {
    background: var(--gray-light);
}

.suggestion-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sugg-info {
    flex: 1;
}

.sugg-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.sugg-tag {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Upgrade banner */
.upgrade-banner {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: var(--white);
    text-align: center;
    margin-top: 1rem;
}

.upgrade-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upgrade-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.upgrade-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--gray-light);
}

.empty-state.small i {
    font-size: 1.5rem;
}

/* ========================================
   CHAT PAGE
   ======================================== */
.chat-section {
    padding: 0;
    height: calc(100vh - 72px);
}

.chat-container {
    display: flex;
    height: 100%;
}

.chat-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-characters {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.sidebar-char {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.sidebar-char:hover,
.sidebar-char.active {
    background: rgba(233,30,99,0.08);
}

.sidebar-char img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-char-info {
    flex: 1;
    min-width: 0;
}

.char-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}

.char-premium {
    color: var(--warning);
    font-size: 0.7rem;
}

/* Chat main */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--light);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-back {
    color: var(--dark);
    font-size: 1.25rem;
    padding: 0.5rem;
}

.chat-character-avatar {
    position: relative;
}

.chat-character-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-character-info h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.typing-indicator {
    font-size: 0.8rem;
    color: var(--primary);
}

.status-text {
    font-size: 0.8rem;
    color: var(--gray);
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--gray-light);
    color: var(--dark);
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 80%;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar.user img {
    border: 2px solid var(--primary-light);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-message .message-bubble {
    background: var(--white);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.user-message .message-bubble {
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gray);
}

.user-message .message-time {
    text-align: right;
}

/* Message limit warning */
.message-limit-warning {
    padding: 0.75rem 1.25rem;
    background: rgba(255,23,68,0.08);
    border-top: 1px solid rgba(255,23,68,0.2);
}

.limit-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--danger);
}

/* Chat input */
.chat-input-area {
    padding: 1rem 1.25rem;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
}

.chat-form .input-group {
    background: var(--light);
    border-radius: 50px;
    padding: 0.25rem;
}

.chat-input {
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
}

.chat-input:focus {
    box-shadow: none;
}

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-send:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-meta {
    display: flex;
    justify-content: flex-end;
    padding: 0.25rem 1rem 0;
}

.char-count {
    font-size: 0.7rem;
    color: var(--gray);
}

/* ========================================
   PROFILE
   ======================================== */
.profile-section {
    padding: 2rem 0;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-cover {
    height: 120px;
    background: var(--gradient-primary);
}

.profile-body {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.profile-avatar-wrapper {
    position: relative;
    margin: -50px auto 1rem;
    width: 100px;
    height: 100px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-username {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.profile-bio {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-light);
    margin-bottom: 1rem;
}

.profile-stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

.profile-meta {
    text-align: left;
    font-size: 0.85rem;
    color: var(--gray);
}

.profile-meta p {
    margin-bottom: 0.5rem;
}

/* ========================================
   SETTINGS
   ======================================== */
.settings-section {
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.page-header p {
    color: var(--gray);
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--dark) !important;
    font-weight: 500;
    transition: var(--transition);
}

.settings-nav a:hover,
.settings-nav a.active {
    background: rgba(233,30,99,0.08);
    color: var(--primary) !important;
}

/* ========================================
   SUBSCRIPTION
   ======================================== */
.subscription-section {
    padding: 2rem 0;
}

.current-plan-banner {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-glow);
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-info i {
    font-size: 2rem;
}

.plan-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.plan-info p {
    margin-bottom: 0;
    opacity: 0.9;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    color: var(--gray);
}

/* ========================================
   EXPLORE
   ======================================== */
.explore-section {
    padding: 0;
}

.explore-header {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

.explore-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.search-form .input-group {
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-form .form-control {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
}

.search-form .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-form .btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.25rem;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.filter-tag.premium-filter:hover,
.filter-tag.premium-filter.active {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--dark);
}

.results-info {
    margin-bottom: 1.5rem;
}

/* ========================================
   FAVORITES
   ======================================== */
.favorites-section {
    padding: 2rem 0;
}

/* ========================================
   ADMIN
   ======================================== */
.admin-section {
    padding: 0;
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    background: var(--dark);
    min-height: calc(100vh - 72px);
    padding: 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    position: sticky;
    top: 72px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(233,30,99,0.15);
    color: var(--white) !important;
    border-left-color: var(--primary);
}

.admin-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 1rem 1.5rem;
}

.admin-content {
    padding: 2rem;
    background: #f5f6fa;
    min-height: calc(100vh - 72px);
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-header p {
    color: var(--gray);
    margin-bottom: 0;
}

.admin-stats {
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.admin-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-stat-card.primary .stat-icon { background: var(--gradient-primary); }
.admin-stat-card.success .stat-icon { background: linear-gradient(135deg, #00c853, #69f0ae); }
.admin-stat-card.warning .stat-icon { background: linear-gradient(135deg, #ffab00, #ffd740); }
.admin-stat-card.danger .stat-icon { background: linear-gradient(135deg, #ff1744, #ff6e40); }

.admin-stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.stat-change {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.stat-change.up {
    color: var(--success);
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card .card-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-light);
}

.admin-card .card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.admin-table {
    font-size: 0.9rem;
}

.admin-table th {
    font-weight: 600;
    color: var(--gray);
    border-top: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    vertical-align: middle;
}

.admin-filters {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Top characters in admin */
.top-char-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.top-char-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.top-char-item:nth-child(1) .top-char-rank { background: gold; color: var(--dark); }
.top-char-item:nth-child(2) .top-char-rank { background: silver; color: var(--dark); }
.top-char-item:nth-child(3) .top-char-rank { background: #cd7f32; color: var(--white); }

.top-char-name {
    font-weight: 600;
    font-size: 0.9rem;
    width: 100px;
    flex-shrink: 0;
}

.top-char-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.top-char-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.top-char-count {
    font-size: 0.8rem;
    color: var(--gray);
    width: 60px;
    text-align: right;
}

/* Char avatar small */
.char-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* User avatar small */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .chat-sidebar {
        display: none !important;
    }

    .admin-sidebar {
        min-height: auto;
    }

    .admin-content {
        padding: 1rem;
    }

    .nav-spacer {
        height: 66px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .characters-grid,
    .characters-grid-large {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .cta-box {
        padding: 2rem;
        text-align: center;
    }

    .message {
        max-width: 90%;
    }

    .current-plan-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-small {
    font-size: 0.875rem;
}

.bg-premium {
    background: linear-gradient(135deg, #ffab00, #ffd740) !important;
    color: var(--dark) !important;
}

.verify-icon {
    font-size: 4rem;
}

.verify-icon.success {
    color: var(--success);
}

.verify-icon.error {
    color: var(--danger);
}

.verify-icon.info {
    color: var(--info);
}
