/* ============================================================
   Ziqi Technology - Complete Stylesheet
   Precision Dispensing & Automation Solutions
   ============================================================ */

:root {
    --primary: #0080FF;
    --primary-light: #3399FF;
    --primary-dark: #005fcc;
    --secondary: #13D3CE;
    --accent: #FF6B35;
    --text: #1a2332;
    --text-light: #5a6a7f;
    --text-lighter: #8899aa;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --bg-dark: #0a1628;
    --border: #dce3ec;
    --border-light: #e8edf3;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 32px rgba(0,128,255,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px;
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-large { padding: 16px 36px; font-size: 16px; }

.btn-submit { width: 100%; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-separator { opacity: 0.3; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-social {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.top-bar-social:hover { color: white; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.header {
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 40px; height: 40px; }
.logo-brand { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.logo-sub { font-size: 11px; font-weight: 600; color: var(--text-light); letter-spacing: 2px; display: block; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(0,128,255,0.06);
}

/* Dropdown */
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: rgba(0,128,255,0.06);
    color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.search-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
    border-radius: 8px;
    transition: var(--transition);
}
.search-btn:hover { background: var(--bg-alt); color: var(--primary); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
}
.mobile-menu.active { display: block; }
.mobile-menu-content a {
    display: block;
    padding: 14px 0;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
}
.mobile-submenu a {
    padding: 10px 0 10px 20px;
    font-size: 14px;
    color: var(--text-light);
    border: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #f5f8fc 100%);
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.hero-image-wrapper img { width: 100%; display: block; }
.hero-image-badge {
    position: absolute;
    bottom: 24px;
    left: -20px;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,128,255,0.3);
}
.badge-year { font-size: 32px; font-weight: 800; display: block; line-height: 1; }
.badge-text { font-size: 13px; opacity: 0.9; }

.hero-bg-pattern {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,128,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: white; }
.section-dark .section-title { color: white; }
.section-dark .section-desc { color: rgba(255,255,255,0.7); }
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.section-title span { color: var(--primary); }
.section-desc {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================================
   FEATURE BLOCK
   ============================================================ */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.feature-image { position: relative; }
.image-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.image-card img { width: 100%; display: block; }
.feature-title { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.feature-title span { color: var(--primary); }
.feature-desc { font-size: 16px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}
.link-arrow span { transition: var(--transition); }
.link-arrow:hover span { transform: translateX(4px); }

/* ============================================================
   SOLUTIONS / CARDS GRID
   ============================================================ */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.solution-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}
.solution-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.solution-icon { margin-bottom: 20px; }
.solution-icon svg { width: 64px; height: 64px; }
.solution-title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.solution-desc { font-size: 15px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.solution-link {
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.partner-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}
.partner-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}
.partner-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.partner-letter {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}
.partner-name { font-size: 18px; font-weight: 600; }
.partner-tag {
    display: inline-block;
    background: rgba(0,128,255,0.2);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.partner-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 16px; }
.partner-link { font-size: 14px; font-weight: 600; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.client-card {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.client-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.client-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}
.client-info h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.client-info p { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.cert-card {
    text-align: center;
    padding: 36px 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.cert-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.cert-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 16px;
}
.cert-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.cert-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-image { height: 220px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-info { padding: 24px; }
.product-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.product-desc { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.product-link { font-weight: 600; font-size: 14px; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-detail-gallery { position: sticky; top: 96px; }
.product-detail-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.product-detail-desc { font-size: 16px; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.product-detail-features { margin-bottom: 32px; }
.product-detail-features h4 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.product-detail-features ul { list-style: none; }
.product-detail-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}
.check-icon { color: var(--secondary); font-weight: 700; flex-shrink: 0; }
.product-detail-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Gallery */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: white; border: 1px solid var(--border); margin-bottom: 16px; }
.gallery-main img { width: 100%; height: 450px; object-fit: contain; background: linear-gradient(135deg, #f8fbff, #f0f7ff); padding: 20px; transition: opacity 0.3s ease; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 16px; pointer-events: none; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid var(--border); color: var(--primary); font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; pointer-events: all; transition: var(--transition); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.gallery-nav button:hover { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.1); }
.gallery-thumbs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.gallery-thumb { min-width: 80px; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); background: white; }
.gallery-thumb:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,128,255,0.15); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: linear-gradient(135deg, #f8fbff, #f0f7ff); }

/* Video cards */
.video-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); transition: var(--transition); }
.video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--primary-light); }
.video-thumbnail { height: 180px; cursor: pointer; }
.video-thumbnail:hover svg { transform: scale(1.1); transition: transform 0.3s ease; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Modal */
.modal-overlay { display: none; }
.modal-overlay.active { display: flex; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-form-features { margin-top: 32px; }
.form-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
}
.form-feature-icon { color: var(--secondary); font-weight: 700; font-size: 18px; }

.contact-form-box { background: white; border-radius: var(--radius); padding: 40px; border: 1px solid var(--border-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.required { color: #e74c3c; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,128,255,0.1);
}

.form-success {
    text-align: center;
    padding: 24px;
    background: #e8f9f0;
    border-radius: 10px;
    margin-top: 20px;
}
.success-icon { font-size: 36px; color: #27ae60; display: block; margin-bottom: 12px; }
.form-success p { color: #27ae60; font-weight: 500; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-info-block { text-align: center; padding: 36px 24px; }
.contact-info-block h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.contact-detail { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-icon { font-size: 32px; margin-bottom: 8px; }

.faq-cta { text-align: center; padding: 48px; background: white; border-radius: var(--radius); border: 1px solid var(--border-light); }
.faq-cta h3 { font-size: 28px; margin-bottom: 12px; }
.faq-cta h3 span { color: var(--primary); }
.faq-cta p { color: var(--text-light); margin-bottom: 24px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 60px 0; }
.cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, var(--primary), #0066cc);
    padding: 48px 60px;
    border-radius: var(--radius);
    color: white;
}
.cta-text h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.cta-text p { opacity: 0.85; }
.cta-block .btn-outline { border-color: white; color: white; }
.cta-block .btn-outline:hover { background: white; color: var(--primary); }

/* ============================================================
   ABOUT PAGE SPECIALTIES
   ============================================================ */
.specialty-list { list-style: none; margin: 20px 0; }
.specialty-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
}
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.about-text h2 span { color: var(--primary); }
.about-text p { font-size: 16px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }

/* ============================================================
   CUSTOM SOLUTIONS CTA
   ============================================================ */
.custom-solution-cta { text-align: center; margin-top: 32px; }

/* ============================================================
   LOADING STATES
   ============================================================ */
.loading-spinner {
    text-align: center;
    padding: 48px;
    color: var(--text-light);
    font-size: 15px;
    grid-column: 1 / -1;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item { cursor: pointer; transition: var(--transition); }
.faq-item:hover { border-color: var(--primary-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 64px 0 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo-brand { font-size: 22px; font-weight: 800; color: white; letter-spacing: 1px; }
.footer-logo-sub { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 2px; display: block; }
.footer-desc { font-size: 14px; line-height: 1.7; }

.footer-nav h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition); }
.footer-nav a:hover { color: white; }

.footer-contact h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer-contact li { margin-bottom: 12px; font-size: 14px; }
.contact-label { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.4); }
.footer-links a:hover { color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .solutions-grid, .partners-grid, .products-grid, .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 42px; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-content, .feature-block, .about-intro, .contact-form-wrapper, .product-detail-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .solutions-grid, .partners-grid, .products-grid, .clients-grid, .certs-grid, .videos-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-block { flex-direction: column; text-align: center; padding: 36px; }
    .section { padding: 60px 0; }
    .gallery-main img { height: 300px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================================
   ADMIN DASHBOARD STYLES
   ============================================================ */
.admin-body { background: var(--bg-alt); }
.admin-sidebar {
    width: 260px;
    background: var(--bg-dark);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
}
.admin-sidebar-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-header h2 { font-size: 18px; font-weight: 700; }
.admin-sidebar-header p { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.admin-nav { padding: 16px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.6);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 4px;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(0,128,255,0.2); color: white; }
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-header {
    background: white;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-content { padding: 32px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-hover); }
.stat-value { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: var(--text-light); }
.admin-table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: var(--bg-alt);
    padding: 14px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-table td { padding: 14px 20px; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,128,255,0.02); }
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-new { background: #e3f2fd; color: #1976d2; }
.status-read { background: #e8f5e9; color: #388e3c; }
.status-replied { background: #fff3e0; color: #f57c00; }
.status-archived { background: #f5f5f5; color: #616161; }

@media (max-width: 1024px) {
    .admin-sidebar { width: 200px; }
    .admin-main { margin-left: 200px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
}
