/* =========================================================
   TG TECH STORE - MOBILE APP STYLE
   Complete style.css
========================================================= */

/* ==================== RESET ==================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 80% 0%, rgba(0,132,255,.16), transparent 28%),
        linear-gradient(180deg,#07101f 0%,#08111f 45%,#050b15 100%);
    color:#f4f7fb;
    min-height:100vh;
    line-height:1.5;
}

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

button,
input,
select,
textarea{
    font-family:inherit;
}

/* ==================== VARIABLES ==================== */

:root{
    --bg:#07101d;
    --bg2:#0b1526;

    --card:#111c2e;
    --card2:#16233a;

    --blue:#249bea;
    --blue2:#1682d4;

    --text:#f4f7fb;
    --muted:#9ba9bd;

    --border:rgba(255,255,255,.08);

    --radius:22px;
}


/* =========================================================
   HEADER
========================================================= */

header{
    width:100%;
    background:rgba(8,17,31,.92);
    border-bottom:1px solid var(--border);

    position:sticky;
    top:0;
    z-index:999;

    backdrop-filter:blur(16px);
}

nav,
.navbar,
.header-container{
    width:100%;
    max-width:1100px;
    margin:auto;

    min-height:72px;

    padding:12px 20px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}


/* LOGO */

.logo,
.brand{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:22px;
    font-weight:700;
    letter-spacing:-.5px;
}

.logo span,
.brand span{
    color:var(--blue);
}


/* NAV LINKS */

.nav-links,
nav ul{
    display:flex;
    align-items:center;
    gap:24px;

    list-style:none;
}

.nav-links a,
nav ul li a{
    color:#aeb8c8;
    font-size:15px;
    font-weight:600;

    transition:.2s;
}

.nav-links a:hover,
nav ul li a:hover{
    color:#fff;
}


/* LOGOUT */

.logout,
.logout-btn,
a[href*="logout"]{
    background:linear-gradient(135deg,#1d9be8,#1674c7);

    color:white !important;

    padding:11px 18px;

    border-radius:13px;

    font-weight:700;

    box-shadow:
        0 8px 22px rgba(26,145,225,.22);
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

main,
.container,
.content{
    width:100%;
    max-width:1100px;

    margin:0 auto;

    padding:28px 20px 45px;
}


/* =========================================================
   HEADINGS
========================================================= */

h1{
    font-size:34px;
    line-height:1.2;

    margin-bottom:22px;

    font-weight:750;
    letter-spacing:-1px;
}

h2{
    font-size:27px;
    margin-bottom:18px;

    letter-spacing:-.5px;
}

h3{
    font-size:20px;
    font-weight:700;
}


/* BLUE WORD EFFECT */

h1 span,
h2 span,
.title span{
    color:var(--blue);
}


/* =========================================================
   HERO / BANNER
========================================================= */

.hero,
.banner{
    position:relative;

    overflow:hidden;

    background:
        radial-gradient(circle at 80% 20%,rgba(39,164,255,.7),transparent 30%),
        linear-gradient(135deg,#101d34 0%,#0e1930 55%,#087cc8 150%);

    border:1px solid rgba(80,175,255,.25);

    border-radius:28px;

    padding:32px 28px;

    margin-bottom:22px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.28);
}

.hero::after,
.banner::after{
    content:"";

    position:absolute;

    width:250px;
    height:250px;

    right:-90px;
    bottom:-120px;

    border-radius:50%;

    background:rgba(31,156,244,.22);

    filter:blur(25px);
}

.hero-content,
.banner-content{
    position:relative;
    z-index:2;

    max-width:600px;
}

.hero h1,
.banner h1{
    margin-bottom:12px;
}

.hero p,
.banner p{
    color:#bdc8d8;

    font-size:16px;

    max-width:430px;

    margin-bottom:20px;
}


/* =========================================================
   BUTTONS
========================================================= */

button,
.btn,
.buy-btn,
input[type="submit"]{
    border:none;

    cursor:pointer;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:8px;

    background:linear-gradient(135deg,#238fdf,#28b5ed);

    color:#fff;

    padding:13px 22px;

    border-radius:14px;

    font-size:16px;
    font-weight:700;

    transition:.25s;

    box-shadow:
        0 10px 25px rgba(20,141,225,.22);
}

button:hover,
.btn:hover,
.buy-btn:hover,
input[type="submit"]:hover{
    transform:translateY(-2px);

    box-shadow:
        0 15px 30px rgba(20,141,225,.35);
}

button:active,
.btn:active,
.buy-btn:active{
    transform:scale(.98);
}


/* =========================================================
   TRUST / FEATURES
========================================================= */

.features,
.trust-features{
    display:grid;

    grid-template-columns:repeat(3,1fr);

    background:rgba(15,27,46,.9);

    border:1px solid var(--border);

    border-radius:24px;

    overflow:hidden;

    margin-bottom:34px;
}

.feature,
.trust-item{
    text-align:center;

    padding:25px 15px;

    border-right:1px solid var(--border);
}

.feature:last-child,
.trust-item:last-child{
    border-right:none;
}

.feature-icon,
.trust-icon{
    width:56px;
    height:56px;

    margin:0 auto 12px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:
        linear-gradient(135deg,#1d78d8,#30b8f0);

    font-size:25px;

    box-shadow:
        0 8px 20px rgba(27,142,234,.25);
}

.feature h3,
.trust-item h3{
    font-size:15px;

    margin-bottom:5px;
}

.feature p,
.trust-item p{
    font-size:13px;

    color:var(--muted);
}


/* =========================================================
   PRODUCT SECTION
========================================================= */

.products-title,
.section-title{
    display:flex;

    justify-content:space-between;
    align-items:center;

    margin:32px 0 18px;
}

.products-title h2,
.section-title h2{
    margin:0;
}

.products-title small,
.section-title small{
    color:var(--muted);
}


/* PRODUCT GRID */

.products-grid,
.product-grid{
    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:18px;
}


/* PRODUCT CARD */

.product-card,
.card{
    position:relative;

    background:
        linear-gradient(145deg,#142238,#0e1829);

    border:1px solid rgba(255,255,255,.09);

    border-radius:24px;

    padding:18px;

    overflow:hidden;

    transition:.25s;

    box-shadow:
        0 12px 35px rgba(0,0,0,.18);
}

.product-card:hover,
.card:hover{
    transform:translateY(-4px);

    border-color:rgba(37,160,240,.35);
}


/* PRODUCT IMAGE */

.product-image,
.product-card img{
    width:100%;

    aspect-ratio:1/1;

    object-fit:contain;

    background:
        linear-gradient(135deg,#239ce9,#126cb6);

    border-radius:19px;

    padding:10px;

    margin-bottom:15px;

    display:block;
}


/* PRODUCT NAME */

.product-card h3,
.card h3{
    font-size:18px;

    margin-bottom:7px;

    color:#fff;
}


/* DESCRIPTION */

.product-card p,
.card p{
    color:#9eabbd;

    font-size:14px;

    margin-bottom:14px;
}


/* PRICE */

.price{
    display:block;

    font-size:24px;

    font-weight:800;

    color:#fff;

    margin:12px 0 15px;
}


/* PRODUCT BUTTON */

.product-card .buy-btn,
.card .buy-btn{
    width:100%;

    min-height:48px;
}


/* =========================================================
   PRODUCT TAGS
========================================================= */

.tags{
    display:flex;

    flex-wrap:wrap;

    gap:7px;

    margin:10px 0 12px;
}

.tag{
    background:rgba(30,142,225,.12);

    border:1px solid rgba(44,161,241,.13);

    color:#a9d9fa;

    padding:5px 9px;

    border-radius:20px;

    font-size:11px;

    font-weight:600;
}


/* =========================================================
   TRUSTED BANNER
========================================================= */

.trusted-banner,
.info-banner{
    display:flex;

    align-items:center;

    gap:14px;

    background:
        linear-gradient(100deg,#d4efff,#68c4f3);

    color:#10223b;

    padding:16px 20px;

    border-radius:18px;

    margin:25px 0;
}

.trusted-banner strong,
.info-banner strong{
    display:block;

    font-size:15px;
}

.trusted-banner p,
.info-banner p{
    color:#36516d;

    font-size:13px;
}


/* =========================================================
   FORMS
========================================================= */

form{
    background:#101b2d;

    border:1px solid var(--border);

    border-radius:22px;

    padding:22px;
}

label{
    display:block;

    color:#c7d0dc;

    font-size:14px;

    font-weight:600;

    margin-bottom:7px;
}

input,
textarea,
select{
    width:100%;

    background:#0a1423;

    color:#fff;

    border:1px solid rgba(255,255,255,.09);

    outline:none;

    border-radius:13px;

    padding:13px 14px;

    font-size:15px;

    margin-bottom:16px;

    transition:.2s;
}

input:focus,
textarea:focus,
select:focus{
    border-color:#249bea;

    box-shadow:
        0 0 0 3px rgba(36,155,234,.12);
}


/* =========================================================
   LOGIN / REGISTER
========================================================= */

.auth-container,
.login-container,
.register-container{
    max-width:460px;

    margin:35px auto;
}

.auth-container h1,
.login-container h1,
.register-container h1{
    text-align:center;
}


/* =========================================================
   PROFILE / ACCOUNT
========================================================= */

.profile-card,
.account-card{
    background:#101b2d;

    border:1px solid var(--border);

    border-radius:22px;

    padding:22px;
}


/* =========================================================
   ORDERS
========================================================= */

.order-card,
.order-item{
    background:#101b2d;

    border:1px solid var(--border);

    border-radius:18px;

    padding:18px;

    margin-bottom:12px;
}

.order-card strong,
.order-item strong{
    color:#fff;
}

.status{
    display:inline-flex;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:700;

    margin-top:8px;
}

.status.pending{
    background:rgba(255,171,0,.12);
    color:#ffbd45;
}

.status.approved,
.status.completed{
    background:rgba(30,202,123,.12);
    color:#4ee39a;
}

.status.rejected{
    background:rgba(255,75,75,.12);
    color:#ff8585;
}


/* =========================================================
   ADMIN DASHBOARD
========================================================= */

.admin-dashboard{
    max-width:1100px;

    margin:auto;

    padding:28px 20px;
}


/* ADMIN TABS */

.admin-tabs,
.dashboard-tabs{
    display:flex;

    gap:10px;

    overflow-x:auto;

    padding-bottom:5px;

    margin-bottom:24px;

    scrollbar-width:none;
}

.admin-tabs::-webkit-scrollbar,
.dashboard-tabs::-webkit-scrollbar{
    display:none;
}

.admin-tabs a,
.dashboard-tabs a{
    white-space:nowrap;

    background:#111d30;

    border:1px solid var(--border);

    color:#c2ccda;

    padding:11px 16px;

    border-radius:12px;

    font-size:14px;

    font-weight:600;
}

.admin-tabs a:hover,
.dashboard-tabs a:hover,
.admin-tabs .active,
.dashboard-tabs .active{
    background:linear-gradient(135deg,#1f90dc,#249fea);

    color:#fff;

    border-color:transparent;
}


/* ADMIN STATS */

.stats-grid,
.admin-stats{
    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:15px;

    margin-top:20px;
}

.stat-card,
.stat{
    background:linear-gradient(145deg,#121f33,#0d1727);

    border:1px solid var(--border);

    border-radius:18px;

    padding:18px;
}

.stat-card span,
.stat span{
    display:block;

    color:#93a1b5;

    font-size:13px;

    margin-bottom:7px;
}

.stat-card strong,
.stat strong{
    font-size:25px;

    color:#fff;
}


/* =========================================================
   TABLE
========================================================= */

.table-container{
    width:100%;

    overflow-x:auto;

    background:#101b2d;

    border:1px solid var(--border);

    border-radius:18px;
}

table{
    width:100%;

    border-collapse:collapse;

    min-width:650px;
}

th{
    text-align:left;

    color:#91a0b4;

    font-size:13px;

    padding:15px;

    background:#0d1726;
}

td{
    padding:15px;

    border-top:1px solid var(--border);

    font-size:14px;

    color:#d7dee8;
}


/* =========================================================
   FOOTER
========================================================= */

footer{
    margin-top:30px;

    padding:30px 20px;

    text-align:center;

    background:#07101c;

    border-top:1px solid var(--border);

    color:#8f9caf;
}

footer h3,
footer strong{
    color:#fff;

    margin-bottom:5px;
}

footer a{
    color:#aeb8c8;

    margin:0 7px;
}

footer a:hover{
    color:#2da9f3;
}


/* =========================================================
   MOBILE DESIGN
========================================================= */

@media(max-width:768px){

    body{
        padding-bottom:10px;
    }

    header{
        position:sticky;
    }

    nav,
    .navbar,
    .header-container{
        min-height:64px;

        padding:10px 16px;
    }

    .logo,
    .brand{
        font-size:19px;
    }


    /* MOBILE NAV */

    .nav-links,
    nav ul{
        gap:12px;
    }

    .nav-links a,
    nav ul li a{
        font-size:13px;
    }


    main,
    .container,
    .content{
        padding:20px 14px 35px;
    }

    h1{
        font-size:27px;
    }

    h2{
        font-size:24px;
    }


    /* HERO */

    .hero,
    .banner{
        padding:25px 20px;

        border-radius:23px;
    }

    .hero h1,
    .banner h1{
        font-size:30px;
    }


    /* FEATURES */

    .features,
    .trust-features{
        border-radius:20px;
    }

    .feature,
    .trust-item{
        padding:18px 7px;
    }

    .feature-icon,
    .trust-icon{
        width:48px;
        height:48px;

        font-size:20px;
    }

    .feature h3,
    .trust-item h3{
        font-size:13px;
    }

    .feature p,
    .trust-item p{
        font-size:11px;
    }


    /* PRODUCTS */

    .products-grid,
    .product-grid{
        grid-template-columns:1fr;

        gap:14px;
    }


    /*
       MOBILE PRODUCT CARD
       Screenshot jaisa horizontal layout
    */

    .product-card{
        display:grid;

        grid-template-columns:110px 1fr;

        gap:15px;

        padding:15px;
    }

    .product-image,
    .product-card img{
        width:110px;
        height:110px;

        aspect-ratio:auto;

        grid-row:span 3;

        margin:0;

        border-radius:18px;
    }

    .product-card h3{
        font-size:19px;

        margin-top:4px;
    }

    .product-card p{
        font-size:13px;

        margin-bottom:5px;
    }

    .price{
        font-size:22px;

        margin:8px 0;
    }

    .product-card .buy-btn{
        grid-column:1/-1;

        margin-top:5px;
    }


    /* ADMIN */

    .admin-dashboard{
        padding:20px 14px;
    }

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

        gap:10px;
    }

    .stat-card,
    .stat{
        padding:15px;
    }

    .stat-card strong,
    .stat strong{
        font-size:21px;
    }


    /* FORMS */

    form{
        padding:18px;

        border-radius:18px;
    }

    input,
    select,
    textarea{
        font-size:16px;
    }


    /* FOOTER */

    footer{
        padding:25px 15px;

        font-size:13px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:400px){

    .logo,
    .brand{
        font-size:17px;
    }

    .nav-links,
    nav ul{
        gap:8px;
    }

    .nav-links a,
    nav ul li a{
        font-size:11px;
    }

    .logout,
    .logout-btn{
        padding:8px 11px;

        font-size:12px;
    }

    .product-card{
        grid-template-columns:90px 1fr;
    }

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

    .product-card h3{
        font-size:17px;
    }

    .features,
    .trust-features{
        grid-template-columns:repeat(3,1fr);
    }

}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar{
    width:5px;
}

::-webkit-scrollbar-track{
    background:#07101d;
}

::-webkit-scrollbar-thumb{
    background:#1c6fa8;

    border-radius:20px;
}