﻿:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --gold: #ffd700;
    --gold-dark: #b8960f;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --border-color: #2a2a2a;
    --gradient-gold: linear-gradient(135deg, #ffd700, #b8960f);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-dark);
}

.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-dark-custom { background-color: var(--bg-secondary) !important; }
.bg-card-custom { background-color: var(--bg-card) !important; }

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
    color: #000;
}

.btn-gold-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold-outline:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

.btn-outline-success {
    border-color: #198754;
    color: #198754;
}

.btn-outline-success:hover {
    background-color: #198754;
    color: #fff;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
#mainNavbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background: transparent;
}

#mainNavbar.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

#mainNavbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    position: relative;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: var(--gold) !important;
}

#mainNavbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 50%, #0a0a0a 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    opacity: 0.3;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from { transform: scale(1); opacity: 0.2; }
    to { transform: scale(1.2); opacity: 0.4; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
}

/* Celebrity Cards */
.celeb-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.celeb-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--gold-glow);
}

.celeb-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.celeb-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.celeb-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.celeb-card .card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 15px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.celeb-card .card-body {
    padding: 20px;
}

.celeb-card .card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.celeb-card .category-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.celeb-card .price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

/* Section Styling */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Category Cards */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.category-card .cat-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Booking Form */
.booking-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.form-control, .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--gold);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Celebrity Profile Page */
.profile-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.profile-hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 50%, transparent 100%);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* Stats */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

/* Tables */
.table-dark-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.table-dark-custom .table {
    margin-bottom: 0;
    color: var(--text-primary);
}

.table-dark-custom .table th {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 14px 16px;
}

.table-dark-custom .table td {
    border-color: var(--border-color);
    padding: 14px 16px;
    vertical-align: middle;
}

.table-dark-custom .table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Status Badges */
.badge-pending { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.badge-confirmed { background: rgba(25, 135, 84, 0.2); color: #198754; }
.badge-rejected { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

/* Search */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 45px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Auth */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
}

/* SweetAlert Dark Theme */
.swal-dark .swal2-popup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
}

.swal-dark .swal2-title {
    color: var(--text-primary);
}

.swal-dark .swal2-html-container {
    color: var(--text-secondary);
}

.swal-dark .swal2-actions {
    gap: 10px;
}

/* Contact Section */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.contact-card .contact-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.8rem; }
    .profile-hero img { height: 300px; }
    .profile-hero-overlay { background: linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0.95)); }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .celeb-card .card-img-wrapper { height: 220px; }
    .booking-form-section { padding: 20px; }
}

/* =========================================
   LIVE CHAT v2 — launcher, panel, feed
   Prefix: cw-
   ========================================= */
#cw {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1080;
    font-family: 'Poppins', sans-serif;
}

/* ---------- launcher ---------- */
.cw-launcher {
    position: relative;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff9d00);
    color: #101010;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cw-launcher:hover {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.55);
}

.cw-launcher.cw-pulse {
    animation: cw-launcher-pulse 1.6s infinite;
}

@keyframes cw-launcher-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.55); }
    70% { box-shadow: 0 0 0 16px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.cw-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #e50914;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- panel ---------- */
.cw-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    background: rgba(15, 17, 21, 0.97);
    border: 1px solid #262b33;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    animation: cw-panel-in 0.28s ease;
}

@keyframes cw-panel-in {
    from { transform: translateY(18px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---------- header ---------- */
.cw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #171a20, #101216);
    border-bottom: 1px solid #262b33;
}

.cw-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cw-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffd700, #ff9d00);
    color: #101010;
    font-size: 1rem;
}

.cw-heading {
    min-width: 0;
    color: #fff;
}

.cw-heading strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-heading small {
    display: block;
    font-size: 0.72rem;
    color: #8b93a1;
}

.cw-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5b6472;
    margin-right: 4px;
    vertical-align: middle;
    transition: background 0.3s ease;
}

.cw-dot.online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}

.cw-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cw-icon-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #8b93a1;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.cw-icon-btn:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
}

/* ---------- sessions list ---------- */
.cw-sessions {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.cw-sessions::-webkit-scrollbar,
.cw-feed::-webkit-scrollbar { width: 5px; }

.cw-sessions::-webkit-scrollbar-thumb,
.cw-feed::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.cw-session {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    text-align: left;
    background: #161a20;
    border: 1px solid #262b33;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.cw-session:hover {
    border-color: #ffd700;
    background: #1b2027;
    transform: translateY(-1px);
}

.cw-session.has-unread { border-left: 3px solid #ffd700; }
.cw-session.is-active { border-left: 3px solid #22c55e; }

.cw-session-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cw-session-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
}

.cw-session-preview {
    font-size: 0.74rem;
    color: #8b93a1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 4px);
}

.cw-session-preview i { margin-right: 4px; }

.cw-pill {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e50914;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.cw-active-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 6px;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
    animation: cw-active-pulse 2s infinite ease-in-out;
}

@keyframes cw-active-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ---------- feed ---------- */
.cw-feed {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.cw-msg {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.cw-msg-me {
    align-self: flex-end;
    align-items: flex-end;
}

.cw-msg-them {
    align-self: flex-start;
    align-items: flex-start;
}

.cw-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.86rem;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

.cw-msg-me .cw-bubble {
    background: linear-gradient(135deg, #ffd700, #f0b90b);
    color: #101010;
    font-weight: 500;
    border-bottom-right-radius: 5px;
}

.cw-msg-them .cw-bubble {
    background: #1c2027;
    color: #ececec;
    border: 1px solid #2a303a;
    border-bottom-left-radius: 5px;
}

.cw-time {
    font-size: 0.66rem;
    color: #6b7280;
    margin-top: 4px;
    padding: 0 4px;
}

.cw-seen {
    color: #ffd700;
    font-weight: 600;
}

.cw-system {
    align-self: center;
    max-width: 90%;
    text-align: center;
    font-size: 0.73rem;
    color: #9aa2af;
    background: #15181d;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px dashed #2a303a;
}

.cw-msg.cw-pending .cw-bubble { opacity: 0.55; }
.cw-msg.cw-pending .cw-time { font-style: italic; }

.cw-msg.cw-failed .cw-bubble { opacity: 0.75; outline: 1px solid #e50914; }
.cw-msg.cw-failed .cw-time { color: #e50914; cursor: pointer; }

/* ---------- typing ---------- */
.cw-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 16px 8px;
    font-size: 0.7rem;
    color: #8b93a1;
}

.cw-typing em {
    font-style: normal;
    margin-left: 4px;
}

.cw-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd700;
    display: inline-block;
    animation: cw-typing-bounce 1.2s infinite ease-in-out;
}

.cw-typing span:nth-child(2) { animation-delay: 0.15s; }
.cw-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes cw-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- composer ---------- */
.cw-composer {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #12151a;
    border-top: 1px solid #262b33;
}

.cw-composer input[type="text"] {
    flex: 1;
    min-width: 0;
    background: #0c0e11;
    border: 1px solid #2a303a;
    border-radius: 22px;
    padding: 10px 16px;
    color: #ececec;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cw-composer input[type="text"]:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.cw-composer button[type="submit"] {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff9d00);
    color: #101010;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.cw-composer button[type="submit"]:hover { transform: scale(1.08); }

.cw-composer-static {
    background: #141414;
}

/* ---------- admin conversation page ---------- */
.cw-page-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
    #cw { bottom: 16px; right: 16px; }
    .cw-launcher { width: 54px; height: 54px; font-size: 1.3rem; }
    .cw-panel {
        inset: 0;
        width: 100vw;
        height: 100vh;
        max-height: none;
        bottom: 0;
        right: 0;
        border-radius: 0;
        border: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cw-panel,
    .cw-launcher.cw-pulse,
    .cw-active-dot,
    .cw-typing span {
        animation: none;
    }
}

/* =========================================
   BRANDING
   ========================================= */
.brand-logo {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    vertical-align: middle;
}
