:root{
    --bg:#080d14;
    --bg2:#0d1520;
    --card:#121c2a;
    --card2:#0f1824;
    --line:rgba(255,255,255,.08);
    --text:#f4f8ff;
    --muted:#a8b8cc;
    --primary:#66d9ff;
    --primary2:#2aa8ff;
    --danger:#ff5d6c;
    --success:#46d27d;
    --shadow:0 20px 55px rgba(0,0,0,.35);
    --radius:24px;
}

*{box-sizing:border-box}

html,body{
    margin:0;
    padding:0;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(102,217,255,.13), transparent 24%),
        radial-gradient(circle at top left, rgba(42,168,255,.08), transparent 22%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    color:var(--text);
    min-height:100vh;
    line-height:1.5;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
}

/* HEADER / MENU */
.site-header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(8,13,20,.86);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
}

.nav-wrap,
.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    padding:18px 0;
}

.brand{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.brand-title{
    font-size:22px;
    font-weight:900;
    letter-spacing:.4px;
}

.brand-subtitle{
    color:var(--muted);
    font-size:13px;
}

.menu,
.admin-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.menu a,
.admin-tabs a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 17px;
    border-radius:999px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.035);
    color:var(--text);
    font-weight:800;
    transition:.2s ease;
}

.menu a:hover,
.menu a.active,
.admin-tabs a:hover,
.admin-tabs a.active{
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#06111c;
    border-color:transparent;
    transform:translateY(-1px);
}

/* COMMON */
h1{
    font-size:52px;
    line-height:1.05;
    margin:0 0 16px;
    letter-spacing:-1px;
}

h2{
    font-size:34px;
    margin:0 0 16px;
}

h3{
    margin:0 0 10px;
}

p{
    color:var(--muted);
}

.muted{
    color:var(--muted);
}

.section-card,
.card,
.panel,
.auth-card,
.info-box,
.gallery-panel,
.product-panel{
    background:linear-gradient(180deg, rgba(18,28,42,.96), rgba(13,21,33,.96));
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:24px;
    box-shadow:var(--shadow);
}

.section-card{
    margin:32px 0;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:13px 20px;
    border-radius:999px;
    border:1px solid transparent;
    cursor:pointer;
    font-weight:900;
    transition:.2s ease;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#06111c;
}

.btn-secondary{
    background:rgba(255,255,255,.045);
    border-color:var(--line);
    color:var(--text);
}

.btn-danger{
    background:rgba(255,93,108,.12);
    border-color:rgba(255,93,108,.35);
    color:#ffd7dc;
}

.btn-small,
.btn-sm{
    padding:9px 14px;
    font-size:14px;
}

.badge,
.tag,
.badge-soft{
    display:inline-flex;
    width:max-content;
    max-width:100%;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(102,217,255,.11);
    border:1px solid rgba(102,217,255,.24);
    color:#d8f7ff;
    font-size:13px;
    font-weight:900;
}

.flash{
    padding:14px 16px;
    border-radius:16px;
    margin:16px 0;
    font-weight:800;
}

.flash.success{
    background:rgba(70,210,125,.12);
    border:1px solid rgba(70,210,125,.28);
    color:#caffdd;
}

.flash.error{
    background:rgba(255,93,108,.12);
    border:1px solid rgba(255,93,108,.28);
    color:#ffd5dc;
}

/* HOME */
.hero{
    margin:34px 0;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:26px;
    align-items:stretch;
    background:linear-gradient(180deg, rgba(18,28,42,.96), rgba(13,21,33,.96));
    border:1px solid var(--line);
    border-radius:30px;
    padding:30px;
    box-shadow:var(--shadow);
}

.hero h1{
    font-size:64px;
}

.hero p{
    font-size:20px;
    max-width:680px;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:18px;
}

.hero-media{
    min-height:420px;
    border-radius:24px;
    overflow:hidden;
    border:1px solid var(--line);
    background:#0d1622;
}

.hero-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* PRODUCTS GRID */
.product-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:22px;
}

.product-card{
    overflow:hidden;
    border-radius:24px;
    border:1px solid var(--line);
    background:linear-gradient(180deg, rgba(19,30,45,.96), rgba(13,21,33,.96));
    box-shadow:var(--shadow);
}

.product-card a{
    display:block;
}

.product-image{
    height:250px;
    background:#0d1622;
    overflow:hidden;
}

.product-image img,
.product-card img{
    width:100%;
    height:250px;
    object-fit:cover;
    transition:.25s ease;
}

.product-card:hover img{
    transform:scale(1.04);
}

.product-body{
    padding:18px;
}

.product-body h3,
.product-card h3{
    font-size:26px;
    margin:12px 0 8px;
}

.product-body p,
.product-card p{
    color:var(--muted);
}

.product-footer,
.admin-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    margin-top:14px;
}

.placeholder-box{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:220px;
    background:#0d1622;
    color:var(--muted);
    font-weight:800;
}

/* PRODUCT PAGE */
.breadcrumb{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    color:var(--muted);
    margin:28px 0 18px;
}

.breadcrumb strong{
    color:var(--text);
}

.product-layout{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:26px;
    margin-bottom:40px;
}

.main-photo-box{
    position:relative;
    overflow:hidden;
    border-radius:22px;
    border:1px solid var(--line);
    background:#0d1622;
}

.main-photo{
    width:100%;
    height:520px;
    object-fit:cover;
    cursor:zoom-in;
}

.zoom-button{
    position:absolute;
    right:14px;
    bottom:14px;
    border:0;
    border-radius:999px;
    padding:10px 14px;
    background:rgba(0,0,0,.68);
    color:white;
    font-weight:900;
    cursor:pointer;
}

.thumb-list{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(90px, 1fr));
    gap:12px;
    margin-top:14px;
}

.thumb-item{
    padding:0;
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    background:#0d1622;
    cursor:pointer;
}

.thumb-item img{
    width:100%;
    height:90px;
    object-fit:cover;
}

.product-panel h1{
    font-size:48px;
}

.product-price-big{
    font-size:32px;
    font-weight:900;
    margin:12px 0;
}

.product-text{
    color:var(--muted);
    font-size:18px;
    margin:16px 0;
}

.option-box{
    padding:16px;
    border-radius:18px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.035);
    margin-top:16px;
}

.chip-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.chip{
    padding:8px 12px;
    border-radius:999px;
    background:#0c1724;
    border:1px solid var(--line);
    font-weight:800;
    color:#eaf7ff;
}

.product-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:22px;
}

.video-box{
    margin-top:18px;
}

.video-box video{
    width:100%;
    border-radius:18px;
    background:#000;
    border:1px solid var(--line);
}

/* LIGHTBOX */
.lightbox{
    position:fixed;
    inset:0;
    z-index:999;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.9);
    padding:24px;
}

.lightbox.open{
    display:flex;
}

.lightbox-image{
    max-width:94vw;
    max-height:88vh;
    border-radius:18px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.lightbox-close{
    position:absolute;
    top:16px;
    right:24px;
    font-size:44px;
    color:#fff;
    cursor:pointer;
    font-weight:900;
}

/* FORMS */
.form-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:16px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group.full{
    grid-column:1 / -1;
}

label{
    font-weight:900;
    color:#eaf4ff;
}

input,
textarea,
select{
    width:100%;
    padding:14px 16px;
    border-radius:16px;
    border:1px solid var(--line);
    background:#0b1421;
    color:var(--text);
    font-size:16px;
    outline:none;
}

textarea{
    min-height:120px;
    resize:vertical;
}

input:focus,
textarea:focus,
select:focus{
    border-color:rgba(102,217,255,.55);
    box-shadow:0 0 0 3px rgba(102,217,255,.12);
}

.checkbox-line{
    display:flex;
    align-items:center;
    gap:10px;
}

.checkbox-line input{
    width:auto;
}

/* TABLES / ADMIN */
.table-wrap{
    overflow:auto;
    border-radius:18px;
}

.admin-table,
table{
    width:100%;
    border-collapse:collapse;
    min-width:900px;
}

th,td{
    padding:14px 12px;
    border-bottom:1px solid var(--line);
    text-align:left;
    vertical-align:top;
}

th{
    color:#cce7f5;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.03em;
}

td{
    color:#f3f8ff;
}

.admin-form{
    display:grid;
    gap:10px;
}

.admin-form textarea{
    min-height:90px;
}

.admin-thumb{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:14px;
    border:1px solid var(--line);
}

.admin-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
}

.admin-grid .card{
    min-height:130px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:22px;
    font-weight:900;
}

/* SUCCESS / AUTH */
.auth-card{
    max-width:720px;
    margin:40px auto;
}

.success-card{
    max-width:780px;
    margin:50px auto;
    text-align:center;
}

/* FOOTER */
.site-footer{
    border-top:1px solid var(--line);
    margin-top:40px;
    padding:28px 0 42px;
    color:var(--muted);
}

/* RESPONSIVE */
@media(max-width:1100px){
    .hero,
    .product-layout{
        grid-template-columns:1fr;
    }

    .product-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .admin-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .hero h1{
        font-size:48px;
    }
}

@media(max-width:760px){
    .container{
        width:min(100% - 20px, 1180px);
    }

    .nav-wrap,
    .nav{
        flex-direction:column;
        align-items:flex-start;
    }

    .hero,
    .section-card,
    .card,
    .panel,
    .gallery-panel,
    .product-panel{
        padding:18px;
        border-radius:22px;
    }

    h1,
    .hero h1,
    .product-panel h1{
        font-size:34px;
    }

    h2{
        font-size:28px;
    }

    .product-grid,
    .form-grid,
    .admin-grid{
        grid-template-columns:1fr;
    }

    .product-image,
    .product-image img,
    .product-card img{
        height:220px;
    }

    .main-photo{
        height:340px;
    }

    .hero-media{
        min-height:300px;
    }

    .menu a,
    .admin-tabs a{
        padding:10px 14px;
        font-size:14px;
    }
}