/* ===== NACHREN JEWELRY — DESIGN SYSTEM ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
    /* Colors */
    --gold: #D4AF37;
    --gold-light: #F2D06B;
    --gold-dark: #B8960C;
    --gold-gradient: linear-gradient(135deg, #D4AF37, #F2D06B, #D4AF37);
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-card: #111111;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #FAFAFA;
    --danger: #EF4444;
    --success: #22C55E;
    --info: #3B82F6;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-elegant: 'Cormorant Garamond', serif;

    /* Spacing */
    --nav-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-logo img {
    height: 45px;
    width: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition-normal);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--black);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.75rem;
}

/* Mobile menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-normal);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--black-light);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: var(--transition-slow);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-auth {
        display: none;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.6) 0%,
            rgba(10, 10, 10, 0.3) 50%,
            rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease 0.3s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gray-400);
    margin-bottom: 40px;
    font-style: italic;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 8s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 0 auto;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-gold);
}

.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-wrapper {
    overflow: hidden;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
}

.product-info {
    padding: 24px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
}

/* ===== ABOUT / FEATURES ===== */
.about-section {
    background: var(--gray-900);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-value {
    color: var(--gray-300);
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 5%;
    background: var(--black);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* ===== AUTH PAGE ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 5% 40px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--gray-800);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.auth-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 16px;
    text-align: center;
    min-height: 20px;
}

.form-success {
    color: var(--success);
    font-size: 0.8rem;
    margin-top: 16px;
    text-align: center;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

/* ===== TICKETS PAGE ===== */
.page-container {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 40px) 5% 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

/* Ticket list */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.ticket-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.ticket-info h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 4px;
}

.ticket-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticket-status.open {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ticket-status.closed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ticket-status.review {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ticket-status.approval {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Ticket detail / chat */
.ticket-detail {
    max-width: 800px;
    margin: 0 auto;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-900);
    border-radius: 8px;
    border: 1px solid var(--gray-800);
}

.message-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.message-bubble.user {
    align-self: flex-end;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom-right-radius: 4px;
}

.message-bubble.admin {
    align-self: flex-start;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-bottom-left-radius: 4px;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
}

.message-text {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.6;
    word-wrap: break-word;
}

.message-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 8px;
    text-align: right;
}

.message-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.message-form input[type="text"],
.message-form textarea {
    flex: 1;
    padding: 12px 16px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.file-upload-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===== ADMIN PAGE ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    min-height: calc(100vh - var(--nav-height) - 80px);
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--gray-400);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.admin-content {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 30px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    background: var(--gray-900);
    border-radius: 8px;
    border: 1px solid var(--gray-800);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Admin chat list */
.chat-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-session-item:hover,
.chat-session-item.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.chat-session-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.chat-session-preview {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.chat-session-badge {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== LIVE CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-normal);
    font-size: 1.5rem;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.chat-toggle .close-icon {
    display: none;
}

.chat-widget.open .chat-toggle .chat-icon {
    display: none;
}

.chat-widget.open .chat-toggle .close-icon {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 500px;
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.chat-widget.open .chat-window {
    display: flex;
}

.chat-window-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--black-light), var(--gray-900));
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-window-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-window-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
}

.chat-window-status {
    font-size: 0.75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-window-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.chat-window-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gray-200);
    border-bottom-right-radius: 4px;
}

.chat-msg.admin {
    align-self: flex-start;
    background: var(--gray-800);
    color: var(--gray-200);
    border-bottom-left-radius: 4px;
}

.chat-msg-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 2px;
}

.chat-msg-time {
    font-size: 0.65rem;
    color: var(--gray-600);
    margin-top: 4px;
    text-align: right;
}

.chat-window-input {
    padding: 14px 16px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    gap: 10px;
    background: var(--gray-900);
}

.chat-window-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--black-card);
    border: 1px solid var(--gray-800);
    border-radius: 20px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.chat-window-input input:focus {
    outline: none;
    border-color: var(--gold);
}

.chat-window-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    color: var(--black);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-window-input button:hover {
    background: var(--gold-light);
}

/* Chat name prompt */
.chat-name-prompt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.chat-name-prompt h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 8px;
}

.chat-name-prompt p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.chat-name-prompt input {
    width: 100%;
    padding: 12px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
    margin-bottom: 12px;
    text-align: center;
}

.chat-name-prompt input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* New modal system (product modal, etc.) */
.modal {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

/* Full-page overlay modal style */
.modal:not(.modal-overlay .modal) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: none;
    border-radius: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: visible;
}

.modal.active:not(.modal-overlay .modal) {
    display: flex;
}

.modal-content {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.4rem;
}

/* Product Detail Modal Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    #modalMainImageContainer {
        height: 300px !important;
    }
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
}

.modal-close:hover {
    color: var(--gold);
}

.modal h2 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Chat confirmation dialog */
.chat-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    animation: fadeIn 0.2s ease;
}

.chat-confirm-box {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 280px;
    box-shadow: var(--shadow-lg);
}

.chat-confirm-box p {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.chat-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ===== IMAGE LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .chat-window {
        width: calc(100vw - 48px);
        height: 420px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .auth-container {
        padding: 28px 20px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }
}

/* New Ticket Button Floating */
.floating-action {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 999;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-display);
    color: var(--gray-400);
    margin-bottom: 8px;
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-800);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast notification */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 360px;
}

.toast.success {
    background: rgba(34, 197, 94, 0.9);
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.toast.info {
    background: rgba(59, 130, 246, 0.9);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}