:root {

    --black:#0b0b0b;
    --gold:#D4AF37;
    --gold-light:#E6C76A;
    --white:#ffffff;
    --gray:#bdbdbd;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:var(--black);
    color:var(--white);
    line-height:1.7;
}

.container{
    width:92%;
    max-width:1280px;
    margin:auto;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

.navbar{

    position:sticky;
    top:0;
    z-index:999;

    background:#000;

    border-bottom:1px solid rgba(212,175,55,.2);
}

.nav-wrapper{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 0;
}

.logo{

    display:flex;
    align-items:center;
    gap:10px;

    color:#fff;
    font-weight:600;
}

.logo img{
    height:45px;
}

.nav-links{

    display:flex;
    gap:30px;

    list-style:none;
}

.nav-links a{
    color:#fff;
}

.btn{

    display:inline-block;

    padding:14px 26px;

    border-radius:6px;

    transition:.3s;
}

.btn-gold{

    background:var(--gold);
    color:#000;
    font-weight:600;
}

.btn-gold:hover{

    background:var(--gold-light);
}

.footer{

    padding:60px 0;

    text-align:center;

    border-top:1px solid rgba(212,175,55,.15);
}

.footer-logo img{
    height:70px;
    margin-bottom:20px;
}

@media(max-width:768px){

    .nav-links{
        display:none;
    }

}
/* HERO */

.hero{

    position:relative;

    min-height:90vh;

    display:flex;
    align-items:center;

    background:url('../images/header-clarity.png')
    center center/cover no-repeat;
}

.hero-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.7);
}

.hero-content{

    position:relative;
    z-index:2;
}

.hero-text{

    max-width:700px;
}

.hero-badge{

    display:inline-block;

    padding:10px 18px;

    background:rgba(212,175,55,.12);

    border:1px solid rgba(212,175,55,.3);

    color:var(--gold);

    border-radius:40px;

    margin-bottom:20px;

    font-size:14px;
}

.hero h1{

    font-size:68px;

    line-height:1.1;

    margin-bottom:25px;

    font-family:'Playfair Display',serif;
}

.hero p{

    font-size:20px;

    color:var(--gray);

    margin-bottom:35px;
}

.hero-buttons{

    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn-outline{

    border:1px solid var(--gold);

    color:var(--gold);

    background:transparent;
}

.btn-outline:hover{

    background:var(--gold);

    color:#000;
}

/* TRUST BAR */

.trust-bar{

    padding:25px 0;

    background:#111;

    border-top:1px solid rgba(255,255,255,.05);

    border-bottom:1px solid rgba(255,255,255,.05);
}

.trust-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    text-align:center;

    color:var(--gold);
}

/* GENERAL SECTIONS */

.section{

    padding:100px 0;
}

.section-header{

    text-align:center;

    margin-bottom:60px;
}

.section-header h2{

    font-size:48px;

    margin-bottom:15px;

    font-family:'Playfair Display',serif;
}

.section-header p{

    color:var(--gray);

    max-width:700px;

    margin:auto;
}

.bg-dark{

    background:#111;
}

/* GRID */

.cards-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;
}

/* TABLETS */

@media(max-width:1100px){

    .cards-grid{

        grid-template-columns:repeat(2,1fr);
    }
}

/* MOBILE */

@media(max-width:768px){

    .cards-grid{

        grid-template-columns:1fr;
    }
}

.card{

    background:#161616;

    padding:35px;

    border-radius:14px;

    border:1px solid rgba(212,175,55,.1);

    transition:.3s;
}

.card:hover{

    transform:translateY(-5px);

    border-color:rgba(212,175,55,.4);
}

.card h3{

    margin-bottom:15px;

    color:var(--gold);
}

/* PRICING */

.pricing-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;
}

.pricing-card{

    background:#151515;

    border-radius:14px;

    padding:40px 30px;

    border:1px solid rgba(255,255,255,.08);

    text-align:center;
}

.pricing-card.featured{

    border:2px solid var(--gold);

    transform:scale(1.04);
}

.price{

    font-size:54px;

    margin:25px 0;

    color:var(--gold);

    font-family:'Playfair Display',serif;
}

.pricing-card ul{

    list-style:none;

    margin-bottom:30px;
}

.pricing-card li{

    margin-bottom:12px;

    color:var(--gray);
}

/* CTA */

.cta-section{

    padding:120px 0;

    text-align:center;

    background:#111;
}

.cta-section h2{

    font-size:52px;

    margin-bottom:20px;
}

.cta-section p{

    max-width:700px;

    margin:0 auto 35px;

    color:var(--gray);
}

/* PAGE HERO */

.page-hero{

    background:
    linear-gradient(
        rgba(0,0,0,.7),
        rgba(0,0,0,.7)
    ),
    url('/assets/images/header.png');

    background-size:cover;

    background-position:center;

    padding:140px 0 100px;
}

.page-hero h1{

    font-size:58px;

    margin:20px 0;
}

.page-hero p{

    max-width:700px;

    margin:auto;

    color:var(--gray);
}

/* QUOTE PAGE */

.quote-grid{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:50px;

    align-items:start;
}

@media(max-width:992px){

    .quote-grid{

        grid-template-columns:1fr;
    }

}

.quote-info h2{

    margin-bottom:35px;

    font-size:40px;
}

.quote-info .pricing-card{

    position:sticky;

    top:120px;

    background:linear-gradient(
        180deg,
        #1a1a1a,
        #101010
    );

    border:1px solid rgba(212,175,55,.25);

    box-shadow:
        0 15px 40px rgba(0,0,0,.35);
}
.order-summary{

    margin-top:30px;

    border-top:1px solid rgba(255,255,255,.08);

    padding-top:20px;
}

.summary-row{

    display:flex;

    justify-content:space-between;

    margin-bottom:15px;
}

.summary-row.total{

    font-size:22px;

    font-weight:700;

    color:var(--gold);
}
.info-card{

    margin-bottom:25px;

    padding:25px;

    background:#151515;

    border-radius:12px;
}

.quote-form-wrapper{

    background:#151515;

    border:1px solid rgba(212,175,55,.15);

    padding:45px;

    border-radius:16px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);
}

.quote-form .form-group{

    margin-bottom:22px;
}

.quote-form label{

    display:block;

    margin-bottom:8px;

    color:#fff;
}

.quote-form input,
.quote-form textarea,
.quote-form select{

    width:100%;

    padding:16px 18px;

    background:#0b0b0b;

    border:1px solid rgba(255,255,255,.08);

    color:#fff;

    border-radius:10px;

    font-size:16px;

    transition:.3s;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus{

    outline:none;

    border-color:var(--gold);
}

.btn-full{

    width:100%;
}

/* ALERTS */

.success-box{

    padding:18px;

    margin-bottom:25px;

    background:rgba(0,255,120,.08);

    border:1px solid rgba(0,255,120,.2);

    border-radius:8px;
}

.error-box{

    padding:18px;

    margin-bottom:25px;

    background:rgba(255,0,0,.08);

    border:1px solid rgba(255,0,0,.2);

    border-radius:8px;
}


/* FAQ */

.faq-container{

    max-width:900px;

    margin:0 auto;
}

.faq-item{

    margin-bottom:15px;

    border:1px solid rgba(212,175,55,.15);

    border-radius:12px;

    overflow:hidden;

    background:#151515;
}

.faq-question{

    width:100%;

    padding:22px 25px;

    background:none;

    border:none;

    color:#fff;

    text-align:left;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    position:relative;
}

.faq-question::after{

    content:"+";

    position:absolute;

    right:25px;

    top:50%;

    transform:translateY(-50%);

    color:var(--gold);

    font-size:24px;
}

.faq-item.active .faq-question::after{

    content:"−";
}

.faq-answer{

    max-height:0;

    overflow:hidden;

    transition:max-height .4s ease;

    background:#111;
}

.faq-answer p{

    padding:0 25px 25px;

    margin:0;

    color:#ccc;

    line-height:1.7;
}

.faq-item.active .faq-answer{

    max-height:300px;
}

/* WHATSAPP */

.whatsapp-float{

    position:fixed;

    bottom:25px;
    right:25px;

    background:#25D366;

    color:#fff;

    padding:15px 22px;

    border-radius:50px;

    z-index:999;
}

/* SWIPER */

.swiper{

    padding-bottom:50px;
}

.swiper-slide img{

    border-radius:12px;
}

/* MOBILE */

@media(max-width:992px){

    .cards-grid,
    .pricing-grid,
    .quote-grid,
    .trust-grid{

        grid-template-columns:1fr 1fr;
    }

    .hero h1{

        font-size:48px;
    }

}

@media(max-width:768px){

    .cards-grid,
    .pricing-grid,
    .quote-grid,
    .trust-grid{

        grid-template-columns:1fr;
    }

    .hero{

        min-height:auto;

        padding:120px 0;
    }

    .hero h1{

        font-size:40px;
    }

    .section-header h2,
    .page-hero h1,
    .cta-section h2{

        font-size:36px;
    }

    .price{

        font-size:42px;
    }

    .hero-buttons{

        flex-direction:column;
    }

}
/* SUCCESS / FAILED PAGES */

.success-page{

    max-width:700px;

    margin:auto;

    text-align:center;

    padding:80px 40px;

    background:#151515;

    border-radius:20px;
}

.success-icon,
.failed-icon{

    width:100px;
    height:100px;

    margin:0 auto 30px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:42px;

    font-weight:bold;
}

.success-icon{

    background:rgba(0,255,120,.1);

    color:#00d26a;
}

.failed-icon{

    background:rgba(255,0,0,.1);

    color:#ff4b4b;
}

.success-page h1{

    margin-bottom:20px;

    font-size:52px;
}

.success-page p{

    margin-bottom:20px;

    color:var(--gray);

    font-size:18px;
}

/* TABLE */

.comparison-table-wrapper{

    overflow-x:auto;
}

.comparison-table{

    width:100%;

    border-collapse:collapse;

    background:#151515;
}

.comparison-table th,
.comparison-table td{

    padding:18px;

    border:1px solid rgba(255,255,255,.08);

    text-align:center;
}

.comparison-table th{

    background:#111;

    color:var(--gold);
}

/* FAQ */

.faq-container{

    max-width:900px;

    margin:auto;
}

.faq-item{

    margin-bottom:20px;

    border:1px solid rgba(255,255,255,.08);

    border-radius:10px;

    overflow:hidden;
}

.faq-question{

    width:100%;

    padding:22px;

    background:#151515;

    color:#fff;

    border:none;

    text-align:left;

    cursor:pointer;

    font-size:18px;
}

.faq-answer{

    max-height:0;

    overflow:hidden;

    transition:.3s;

    background:#111;
}

.faq-answer p{

    padding:20px;

    color:var(--gray);
}

.faq-item.active .faq-answer{

    max-height:300px;
}
/* ADMIN */

.admin-body{

    background:#0c0c0c;

    color:#fff;
}

.admin-layout{

    display:flex;

    min-height:100vh;
}

.admin-sidebar{

    width:280px;

    background:#111;

    padding:40px 25px;

    border-right:1px solid rgba(255,255,255,.08);
}

.sidebar-logo{

    text-align:center;

    margin-bottom:40px;
}

.sidebar-logo img{

    width:80px;

    margin-bottom:15px;
}

.admin-sidebar ul{

    list-style:none;
}

.admin-sidebar li{

    margin-bottom:15px;
}

.admin-sidebar a{

    display:block;

    padding:14px 18px;

    border-radius:8px;

    color:#fff;

    transition:.3s;
}

.admin-sidebar a:hover{

    background:rgba(212,175,55,.12);

    color:var(--gold);
}

.admin-content{

    flex:1;

    padding:40px;
}

.admin-topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:40px;
}

.admin-stats{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;
}

.admin-stat-card{

    background:#151515;

    padding:35px;

    border-radius:14px;

    border:1px solid rgba(255,255,255,.08);
}

.admin-stat-card h3{

    margin-bottom:15px;

    color:var(--gold);
}

.admin-stat-number{

    font-size:42px;

    font-weight:bold;
}

.admin-table-wrapper{

    overflow-x:auto;
}

.admin-table{

    width:100%;

    border-collapse:collapse;

    background:#151515;
}

.admin-table th,
.admin-table td{

    padding:5px;

    border:1px solid rgba(255,255,255,.08);
}

.admin-table th{

    background:#111;

    color:var(--gold);

    text-align:left;
}

/* =====================================
   ADMIN LOGIN
===================================== */

.admin-login-body{

    margin:0;
    padding:0;

    min-height:100vh;

    background:
    linear-gradient(
        rgba(0,0,0,.75),
        rgba(0,0,0,.85)
    ),
    url('../images/executive-desk.jpg');

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;

    font-family:'Inter',sans-serif;
}

.admin-login-wrapper{

    width:100%;
    max-width:500px;
    padding:20px;
}

.admin-login-form{

    background:#151515;

    padding:45px;

    border-radius:18px;

    border:1px solid rgba(212,175,55,.2);

    box-shadow:
    0 15px 40px rgba(0,0,0,.4);

    text-align:center;
}

.admin-logo{

    width:90px;
    height:auto;

    margin:0 auto 20px;

    display:block;
}

.admin-login-form h1{

    color:#D4AF37;

    margin-bottom:30px;

    font-size:32px;
}

.admin-login-form .form-group{

    margin-bottom:20px;

    text-align:left;
}

.admin-login-form label{

    display:block;

    margin-bottom:8px;

    color:#fff;

    font-weight:500;
}

.admin-login-form input{

    width:100%;

    padding:14px 16px;

    background:#0d0d0d;

    border:1px solid rgba(255,255,255,.1);

    border-radius:10px;

    color:#fff;

    font-size:15px;

    box-sizing:border-box;
}

.admin-login-form input:focus{

    outline:none;

    border-color:#D4AF37;

    box-shadow:
    0 0 10px rgba(212,175,55,.2);
}

.admin-login-form .btn-full{

    width:100%;

    margin-top:10px;
}

.admin-login-form .error-box{

    margin-bottom:20px;
}

@media(max-width:768px){

    .admin-login-form{

        padding:30px 25px;
    }

    .admin-login-form h1{

        font-size:26px;
    }
}

@media(max-width:768px){

    .admin-layout{

        flex-direction:column;
    }

    .admin-sidebar{

        width:100%;
    }

    .admin-stats{

        grid-template-columns:1fr;
    }

}
/* SMALL BUTTONS */

.btn-sm{

    padding:10px 14px;

    font-size:14px;
}

.btn-danger{

    background:#c62828;

    color:#fff;
}

.btn-danger:hover{

    background:#e53935;
}

/* ADMIN CARD */

.admin-content .card{

    background:#151515;

    padding:40px;

    border-radius:14px;

    border:1px solid rgba(255,255,255,.08);
}

.admin-content .card p{

    margin-bottom:15px;

    color:#ddd;
}

/* ==========================
ADMIN
========================== */

.admin-container{

    max-width:1400px;

    margin:auto;

    padding:40px;
}

.admin-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;
}

.admin-filter{

    display:flex;

    gap:15px;

    margin-bottom:30px;

    flex-wrap:wrap;
}

.admin-filter input,
.admin-filter select{

    padding:12px;

    min-width:250px;

    border-radius:8px;

    border:1px solid rgba(255,255,255,.1);

    background:#111;

    color:#fff;
}

.admin-card{

    background:#151515;

    border-radius:14px;

    padding:25px;

    overflow:auto;

    border:1px solid rgba(255,255,255,.08);

}

.admin-table{

    width:100%;

    border-collapse:collapse;

    table-layout:auto;

}

.admin-table th{

    background:#111;

    color:var(--gold);

    text-align:left;

    padding:5px;
}

.admin-table td{

    padding:5px;

    border-bottom:1px solid rgba(255,255,255,.05);
}

/* ==========================
ADMIN LAYOUT
========================== */

.admin-layout{

    display:flex;

    min-height:100vh;

    background:#0b0b0b;
}

.admin-sidebar{

    width:260px;

    background:#111;

    border-right:1px solid rgba(255,255,255,.05);

    padding:25px;

    position:fixed;

    top:0;

    left:0;

    bottom:0;

    overflow-y:auto;
}

.admin-brand{

    text-align:center;

    margin-bottom:40px;
}

.admin-brand img{

    max-width:70px;

    margin-bottom:10px;
}

.admin-brand h3{

    color:var(--gold);

    margin:0;
}

.admin-sidebar ul{

    list-style:none;

    padding:0;

    margin:0;
}

.admin-sidebar li{

    margin-bottom:4px;
}

.admin-sidebar a{

    display:block;

    padding:9px 11px;

    color:#fff;

    border-radius:10px;

    text-decoration:none;

    transition:.3s;
}

.admin-sidebar a:hover{

    background:rgba(212,175,55,.1);

    color:var(--gold);
}

.admin-content{

    margin-left:260px;

    width:calc(100% - 260px);

    padding:40px;
	margin-right: -300px;
	flex:1;
    min-width:0;
    padding:40px;
    overflow-x:hidden;
    box-sizing:border-box;
}

.admin-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;
}

.admin-filter{

    display:flex;

    gap:15px;

    margin-bottom:25px;

    flex-wrap:wrap;
}

.admin-filter input{

    min-width:300px;
}

.table-responsive{

    overflow-x:auto;

    width:100%;
}

.admin-table{

    width:100%;

    border-collapse:collapse;

    min-width:1200px;
}

.admin-table th,
.admin-table td{

    padding:14px;

    border-bottom:1px solid rgba(255,255,255,.08);

    text-align:left;
}

.admin-table th{

    color:var(--gold);

    background:#121212;
}

@media(max-width:992px){

    .admin-sidebar{

        position:relative;

        width:100%;
    }

    .admin-content{

        width:100%;

        margin-left:0;
    }

    .admin-layout{

        flex-direction:column;
    }
}

.order-view-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin-bottom:25px;
}

.order-form-grid{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fit,
        minmax(250px,1fr)
    );

    gap:20px;

    margin-bottom:20px;
}

.order-view-grid{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fit,
        minmax(350px,1fr)
    );

    gap:25px;

    margin-bottom:25px;
}

.admin-card{

    background:#111;

    border:1px solid rgba(
        255,
        255,
        255,
        .08
    );

    border-radius:18px;

    padding:25px;

    margin-bottom:25px;
}

.admin-card h3{

    margin-bottom:20px;
}

.admin-card p{

    margin-bottom:12px;
}

.form-group{

    display:flex;

    flex-direction:column;

    gap:10px;
}

.form-group input,
.form-group select,
.form-group textarea{

    width:100%;
}

.status-badge{

    display:inline-block;

    padding:8px 15px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

    margin-left:15px;
}

.status-badge.paid{
    background:#0a3;
}

.status-badge.processing{
    background:#b8860b;
}

.status-badge.shipped{
    background:#1e90ff;
}

.status-badge.delivered{
    background:#28a745;
}

.status-badge.cancelled{
    background:#dc3545;
}
.summary-table{

    width:100%;

    border-collapse:collapse;
}

.summary-table td{

    padding:12px;

    border-bottom:1px solid rgba(255,255,255,.08);
}

@media(max-width:768px){

    .order-view-grid{

        grid-template-columns:1fr;
    }

}

.admin-table input{

    width:100%;
    padding:10px;

    background:#111;
    color:#fff;

    border:1px solid rgba(255,255,255,.1);
    border-radius:6px;
}

.admin-table input:focus{

    outline:none;
    border-color:var(--gold);
}

.settings-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(350px,1fr));

    gap:25px;
}

.settings-grid .info-card{

    background:#151515;

    padding:25px;

    border-radius:12px;
}

.settings-grid textarea,
.settings-grid input{

    width:100%;
}
 
.status-paid{

    color:#3ddc84;

    font-weight:600;
}

.status-processing{

    color:#ffb020;

    font-weight:600;
}

.status-shipped{

    color:#4ea1ff;

    font-weight:600;
}

.status-delivered{

    color:#00d084;

    font-weight:600;
}

.status-cancelled{

    color:#ff5b5b;

    font-weight:600;
}

.btn-small{

    padding:8px 14px;

    font-size:14px;
}

/* ANALYTICS */

.chart-card{

    margin-top:40px;

    background:#151515;

    padding:40px;

    border-radius:14px;

    border:1px solid rgba(255,255,255,.08);
}

.chart-card h2{

    margin-bottom:30px;

    color:var(--gold);
}

/* SUCCESS */

.success-box{

    background:rgba(0,255,100,.1);

    border:1px solid rgba(0,255,100,.2);

    color:#00d26a;

    padding:15px;

    border-radius:8px;

    margin-bottom:20px;
}

/* =========================================================
   CUSTOMER DASHBOARD
   ========================================================= */

.customer-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Main area must respect the sidebar */
.admin-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Main content */
.admin-content {
    flex: 1;
    min-width: 0;
    width: calc(100% - 250px);
    max-width: calc(100% - 250px);
    box-sizing: border-box;
    padding: 30px 40px;
    overflow-x: hidden;
}

/* Top heading */
.admin-topbar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   CUSTOMER SUMMARY CARDS
   ========================================================= */

.customer-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 25px 0;
}

.customer-stat-card {
    min-width: 0;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #292929;
    border-radius: 8px;
    background: #111111;
}

.customer-stat-label {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.customer-stat-value {
    font-size: 25px;
    font-weight: 700;
    color: #c9a227;
}

/* =========================================================
   CUSTOMER PROFILE
   ========================================================= */

.customer-profile {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #292929;
    border-radius: 8px;
    background: #111111;
}

.customer-profile-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.customer-profile-email {
    color: #aaa;
    font-size: 14px;
}

/* =========================================================
   ORDERS
   ========================================================= */

.customer-orders {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #292929;
    border-radius: 8px;
    background: #111111;
    overflow: hidden;
}

.customer-orders-header {
    padding: 20px;
    border-bottom: 1px solid #292929;
}

.customer-orders-header h2 {
    margin: 0;
    font-size: 18px;
}

/* Important: table must not determine page width */
.customer-orders-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* Column sizing */
.customer-orders-table th:nth-child(1),
.customer-orders-table td:nth-child(1) {
    width: 25%;
}

.customer-orders-table th:nth-child(2),
.customer-orders-table td:nth-child(2) {
    width: 18%;
}

.customer-orders-table th:nth-child(3),
.customer-orders-table td:nth-child(3) {
    width: 18%;
}

.customer-orders-table th:nth-child(4),
.customer-orders-table td:nth-child(4) {
    width: 19%;
}

.customer-orders-table th:nth-child(5),
.customer-orders-table td:nth-child(5) {
    width: 20%;
}

/* Table cells */
.customer-orders-table th,
.customer-orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #292929;
    box-sizing: border-box;

    /* Prevent long content from expanding table */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-orders-table th {
    color: #c9a227;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.customer-orders-table td {
    font-size: 14px;
}

.customer-orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-paid {
    background: #12351d;
    color: #67d486;
}

.status-pending {
    background: #3b3212;
    color: #e4c95a;
}

.status-shipped {
    background: #122a3b;
    color: #65b9f5;
}

.status-processing {
    background: #302415;
    color: #e5aa4e;
}

.status-cancelled {
    background: #3b1515;
    color: #f27c7c;
}

/* =========================================================
   MOBILE / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1000px) {

    .admin-sidebar {
        width: 220px;
        min-width: 220px;
    }

    .admin-content {
        width: calc(100% - 220px);
        max-width: calc(100% - 220px);
        padding: 25px;
    }

    .customer-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .customer-stat-card {
        padding: 16px;
    }

    .customer-stat-value {
        font-size: 21px;
    }

    .customer-orders-table th,
    .customer-orders-table td {
        padding: 12px 10px;
    }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 0;
    }

    .admin-content {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .customer-summary {
        grid-template-columns: 1fr;
    }

    .customer-orders-table {
        font-size: 12px;
    }

    .customer-orders-table th,
    .customer-orders-table td {
        padding: 10px 8px;
    }

    .customer-orders-table th:nth-child(1),
    .customer-orders-table td:nth-child(1) {
        width: 24%;
    }

    .customer-orders-table th:nth-child(2),
    .customer-orders-table td:nth-child(2) {
        width: 18%;
    }

    .customer-orders-table th:nth-child(3),
    .customer-orders-table td:nth-child(3) {
        width: 18%;
    }

    .customer-orders-table th:nth-child(4),
    .customer-orders-table td:nth-child(4) {
        width: 20%;
    }

    .customer-orders-table th:nth-child(5),
    .customer-orders-table td:nth-child(5) {
        width: 20%;
    }
}

.customer-orders-table td a:hover {
    color: #c9a227 !important;
    text-decoration: underline !important;
}

/* =========================================================
   QUOTE VIEW — SCREEN UI FIX
   Keeps admin pages dark while preserving print styling
   ========================================================= */

.quote-view-page {
    background: #0b0b0b;
    color: #f5f5f5;
}

.quote-view-page .quote-card,
.quote-view-page .quote-section,
.quote-view-page .quote-meta,
.quote-view-page .quote-customer,
.quote-view-page .quote-summary,
.quote-view-page .quote-editor,
.quote-view-page .quote-history {
    background: #111111 !important;
    color: #f5f5f5 !important;
    border: 1px solid #292929 !important;
}

.quote-view-page h1,
.quote-view-page h2,
.quote-view-page h3,
.quote-view-page h4,
.quote-view-page p,
.quote-view-page span,
.quote-view-page label,
.quote-view-page strong {
    color: inherit;
}

.quote-view-page .muted,
.quote-view-page .quote-muted {
    color: #9a9a9a !important;
}

.quote-view-page .quote-label {
    color: #a8a8a8 !important;
}

.quote-view-page .quote-value {
    color: #f5f5f5 !important;
}

.quote-view-page input,
.quote-view-page select,
.quote-view-page textarea {
    background: #181818 !important;
    color: #ffffff !important;
    border: 1px solid #3a3a3a !important;
}

.quote-view-page input::placeholder,
.quote-view-page textarea::placeholder {
    color: #777 !important;
}

.quote-view-page .quote-number {
    color: #d4af37 !important;
}

.quote-view-page .btn-gold {
    background: #d4af37 !important;
    color: #111 !important;
}

.quote-view-page .btn-outline {
    background: transparent !important;
    color: #d4af37 !important;
    border: 1px solid #d4af37 !important;
}

/* =========================================================
   PRINT — restore white professional quotation
   ========================================================= */

@media print {

    body.quote-view-page {
        background: #fff !important;
        color: #111 !important;
    }

    body.quote-view-page .admin-sidebar,
    body.quote-view-page .admin-topbar,
    body.quote-view-page .quote-actions,
    body.quote-view-page .no-print {
        display: none !important;
    }

    body.quote-view-page .quote-card,
    body.quote-view-page .quote-section,
    body.quote-view-page .quote-meta,
    body.quote-view-page .quote-customer,
    body.quote-view-page .quote-summary {
        background: #fff !important;
        color: #111 !important;
        border-color: #ddd !important;
    }

    body.quote-view-page h1,
    body.quote-view-page h2,
    body.quote-view-page h3,
    body.quote-view-page h4,
    body.quote-view-page p,
    body.quote-view-page span,
    body.quote-view-page label,
    body.quote-view-page strong,
    body.quote-view-page .quote-value {
        color: #111 !important;
    }

    body.quote-view-page .quote-label,
    body.quote-view-page .muted {
        color: #666 !important;
    }

    body.quote-view-page input,
    body.quote-view-page select,
    body.quote-view-page textarea {
        background: #fff !important;
        color: #111 !important;
        border: 1px solid #ccc !important;
    }
}
/* =========================================================
   QUOTE VIEW PAGE
   ========================================================= */

.quote-view-page {
    background: #080808;
    color: #f5f5f5;
}

/* Main quote content */
.quote-view-page .admin-content {
    background: #080808;
}

/* All quote cards */
.quote-view-page .card,
.quote-view-page .info-card,
.quote-view-page .quote-card,
.quote-view-page .quote-section {
    background: #111111 !important;
    color: #f5f5f5 !important;
    border: 1px solid #292929 !important;
    box-shadow: none !important;
}

/* Kill any light backgrounds inherited from generic cards */
.quote-view-page .info-card,
.quote-view-page .quote-card,
.quote-view-page .quote-section {
    background-color: #111111 !important;
}

/* Headings */
.quote-view-page h1,
.quote-view-page h2,
.quote-view-page h3,
.quote-view-page h4 {
    color: #ffffff;
}

/* Labels */
.quote-view-page label,
.quote-view-page .label,
.quote-view-page .meta-label {
    color: #9f9f9f !important;
}

/* Normal text */
.quote-view-page p,
.quote-view-page span,
.quote-view-page td,
.quote-view-page .meta-value {
    color: #eeeeee;
}

/* Gold values */
.quote-view-page .gold,
.quote-view-page .quote-number,
.quote-view-page .amount {
    color: #e2b93b !important;
}

/* Quote information boxes */
.quote-view-page .quote-meta-item {
    background: #171717 !important;
    border: 1px solid #292929 !important;
    color: #ffffff !important;
}

/* Status badges */
.quote-view-page .status-badge {
    background: #292929 !important;
    color: #e2b93b !important;
    border: 1px solid #4b3d13;
}

/* Notes */
.quote-view-page .quote-notes {
    background: #171717 !important;
    color: #eeeeee !important;
    border: 1px solid #292929 !important;
}

/* Forms */
.quote-view-page input,
.quote-view-page select,
.quote-view-page textarea {
    background: #151515 !important;
    color: #ffffff !important;
    border: 1px solid #3a3a3a !important;
}

.quote-view-page input:focus,
.quote-view-page select:focus,
.quote-view-page textarea:focus {
    border-color: #d8af32 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(216,175,50,.12);
}

/* Select specifically */
.quote-view-page select {
    min-height: 44px;
}

/* Timeline cards */
.quote-view-page .timeline-item {
    background: #171717 !important;
    color: #ffffff !important;
    border: 1px solid #292929 !important;
}

/* Timeline item labels */
.quote-view-page .timeline-item small,
.quote-view-page .timeline-label {
    color: #9f9f9f !important;
}

/* Timeline values */
.quote-view-page .timeline-item strong {
    color: #ffffff !important;
}

/* Prevent generic white backgrounds */
.quote-view-page [style*="background: white"],
.quote-view-page [style*="background:white"],
.quote-view-page [style*="background-color: white"],
.quote-view-page [style*="background-color:white"] {
    background: #111111 !important;
    color: #ffffff !important;
}

/* Buttons */
.quote-view-page .btn-gold {
    background: #d9b43c !important;
    color: #080808 !important;
    border: 1px solid #e4c34e !important;
}

.quote-view-page .btn-gold:hover {
    background: #e8c957 !important;
}

/* Compact spacing */
.quote-view-page .quote-section {
    margin-bottom: 18px;
}

/* Mobile */
@media (max-width: 768px) {

    .quote-view-page .admin-content {
        padding: 20px;
    }

    .quote-view-page .quote-meta-grid {
        grid-template-columns: 1fr 1fr !important;
    }

}

@media (max-width: 520px) {

    .quote-view-page .quote-meta-grid {
        grid-template-columns: 1fr !important;
    }
}