/* ===== Digital Store - Modern Responsive CSS ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0f172a;
    --accent: #22c55e;
    --danger: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Header ===== */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    color: var(--text-light);
}

.nav a:hover {
    color: var(--primary);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Products Grid ===== */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

/* Mobile: 2 columns */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-thumb {
    height: 180px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb .placeholder {
    font-size: 3rem;
    opacity: 0.4;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-title a:hover {
    color: var(--primary);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--secondary);
}

.price .old {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--accent);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===== Product Detail Page ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0 60px;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.product-media {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.product-media .thumb {
    height: 320px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-info h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-box {
    background: #f1f5f9;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.price-box .current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.price-box .old-price {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.price-box .save {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

.description {
    margin-top: 30px;
    line-height: 1.7;
}

.description h3 {
    margin-bottom: 12px;
}

.files-list {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.files-list h4 {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.file-item:last-child {
    border-bottom: none;
}

/* ===== Checkout ===== */
.checkout-box {
    max-width: 520px;
    margin: 40px auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 32px;
}

.checkout-box h2 {
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.order-summary {
    background: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.order-summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.order-summary .total {
    font-weight: 700;
    font-size: 1.15rem;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 8px;
}

/* ===== Success / Download ===== */
.success-box {
    max-width: 560px;
    margin: 50px auto;
    text-align: center;
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.download-list {
    text-align: left;
    margin: 24px 0;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* ===== Admin ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--secondary);
    color: white;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
}

.sidebar nav a {
    display: block;
    padding: 12px 20px;
    color: #94a3b8;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #1e293b;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: var(--bg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-paid {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* ================= Shakil IT — v2 design (green theme, types, footer, mobile) ================= */
:root{--primary:#16a34a;--primary-dark:#15803d}
html,body{overflow-x:hidden}img,iframe,video{max-width:100%}
.hero{background:linear-gradient(135deg,#052e16,#0f172a 60%,#064e3b)!important}
.header{background:#0f172a!important;border-bottom:0!important}
.header .logo{color:#e2e8f0;font-weight:800}.header .logo b{color:#22c55e}
.header-inner{gap:12px}
.nav-desktop{gap:6px}
.nav-desktop>a,.dd-t{color:#cbd5e1!important;padding:8px 12px;border-radius:8px;font-size:.92rem;white-space:nowrap;display:block}
.nav-desktop>a:hover,.dd:hover .dd-t{background:#1e293b;color:#fff!important}
.dd{position:relative}.dd-m{display:none;position:absolute;top:100%;left:0;min-width:210px;background:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:6px;z-index:200}
.dd:hover .dd-m{display:block}.dd-m a{display:block;padding:9px 12px;border-radius:7px;color:#0f172a;font-size:.9rem}.dd-m a:hover{background:#dcfce7;color:#166534}
.hsearch{margin-left:auto;display:flex}.hsearch input{width:200px;padding:8px 12px;border:1px solid #334155;border-right:0;border-radius:8px 0 0 8px;background:#1e293b;color:#fff;font-size:.88rem;outline:none}
.hsearch button{border:0;background:#16a34a;color:#fff;padding:0 12px;border-radius:0 8px 8px 0;cursor:pointer}
.hright{display:flex;align-items:center;gap:6px}.hacc{font-size:1.3rem;padding:4px 8px}
.hamb{display:none;background:none;border:0;color:#fff;font-size:1.6rem;cursor:pointer}
.m-search,.mm{display:none}
.mg .sub-wrap{display:none}.mg.open .sub-wrap{display:block}
.tc{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0 16px}
.tcard{display:block;border-radius:16px;padding:22px;color:#fff!important;transition:.2s}.tcard:hover{transform:translateY(-3px)}
.tcard.product{background:linear-gradient(135deg,#16a34a,#065f46)}.tcard.service{background:linear-gradient(135deg,#2563eb,#1e3a8a)}
.tcard .ti{font-size:2.4rem}.tcard h3{font-size:1.15rem;margin:4px 0}.tcard p{font-size:.84rem;opacity:.92}
.tcard .tn{margin-top:10px;display:inline-block;background:rgba(255,255,255,.2);padding:3px 11px;border-radius:99px;font-size:.76rem;font-weight:700}
.segs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 10px}
.seg{padding:9px 16px;border-radius:99px;border:1.5px solid #e2e8f0;background:#fff;font-weight:700;font-size:.88rem;color:#0f172a}
.seg.on{background:#16a34a;color:#fff;border-color:#16a34a}.seg.on.service{background:#2563eb;border-color:#2563eb}
.cch{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.cc{padding:5px 13px;border-radius:99px;background:#f1f5f9;font-size:.82rem;border:1px solid transparent;color:#0f172a}.cc.on{background:#dcfce7;border-color:#16a34a;color:#166534;font-weight:700}
/* trust + footer */
.trust{max-width:1200px;margin:36px auto 0;padding:0 16px}
.trust-in{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tb{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px 10px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.tb i{font-style:normal;font-size:1.9rem;display:block;margin-bottom:4px}.tb b{display:block;font-size:.98rem}.tb small{color:#64748b;font-size:.78rem}
.ft2{margin-top:36px;background:linear-gradient(180deg,#1e293b 0%,#1e3a5f 100%);padding:34px 16px 0}
.ft2-in{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.fc{background:linear-gradient(160deg,#fff 0%,#d7f7ff 100%);border-radius:14px;padding:16px 18px 20px;color:#0f172a}
.fc h4{text-align:center;font-size:1.05rem;padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid #d5e3ea}
.soc{display:flex;justify-content:center;gap:8px;margin-bottom:14px}
.soc a{width:52px;height:52px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:.2s}.soc a:hover{transform:translateY(-3px)}.soc svg{width:28px;height:28px}
.gp{display:flex;width:max-content;margin:0 auto;gap:10px;align-items:center;background:#000;color:#fff!important;border-radius:8px;padding:7px 16px;border:1px solid #444}
.gp .gpi{color:#34d399;font-size:1.5rem}.gp small{display:block;font-size:.6rem;letter-spacing:.5px;line-height:1}.gp b{font-size:1.1rem;line-height:1.1}
.fl{display:flex;align-items:center;gap:10px;padding:11px 6px;color:#0f172a;font-size:.95rem;border-radius:8px}.fl:hover{background:rgba(255,255,255,.7);color:#15803d}.fl i{font-style:normal;font-size:1.2rem}
.copy{max-width:1200px;margin:24px auto 0;padding:16px 0;text-align:center;color:#e2e8f0;font-size:.88rem;border-top:1px solid rgba(255,255,255,.12)}
.ov{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:500;display:flex;align-items:center;justify-content:center;padding:14px}
.ov>div{background:#fff;border-radius:14px;max-width:440px;width:100%;padding:22px;max-height:90vh;overflow:auto}
/* manual payment page */
.steps4{display:flex;gap:6px;justify-content:center;margin-bottom:16px;font-size:.78rem;flex-wrap:wrap}
.steps4 span{padding:5px 11px;border-radius:99px;background:#f1f5f9;color:#64748b;font-weight:600}.steps4 .on{background:#16a34a;color:#fff}.steps4 .dn{background:#dcfce7;color:#166534}
.pmeth{display:flex;gap:8px;margin:12px 0}
.pmeth label{flex:1;border:2px solid #e2e8f0;border-radius:10px;padding:11px 4px;text-align:center;cursor:pointer;font-weight:700;font-size:.9rem;color:var(--c)}
.pmeth label.on{border-color:var(--c);background:#f8fafc}.pmeth input{display:none}
.payinfo{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-bottom:14px;font-size:.92rem;line-height:1.9}
.fr2{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border-top:1px dashed #e2e8f0;border-bottom:1px dashed #e2e8f0;margin:4px 0;flex-wrap:wrap}
.fr2 code{background:#e2e8f0;padding:4px 9px;border-radius:6px;letter-spacing:1px}.amt{color:#16a34a}
.cp-btn{border:1.5px solid #e2e8f0;background:#fff;border-radius:7px;padding:5px 10px;font-weight:600;cursor:pointer;font-size:.78rem}
.alert-err{background:#fef2f2;color:#b91c1c;padding:12px;border-radius:8px;margin-bottom:14px;font-size:.9rem}
.svc-box{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:14px;margin:14px 0;font-size:.92rem}
.svc-box ul{margin:8px 0 0 18px}.svc-box li{margin:3px 0}
.tg-demo{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:12px;margin:12px 0;text-align:left;font-size:.88rem}
/* mobile */
@media(max-width:800px){
  .nav-desktop,.hsearch{display:none}.hamb{display:block}.hright{margin-left:auto}
  .header-inner{height:56px}
  .m-search{display:block;background:#0f172a;padding:0 12px 10px}
  .m-search input{width:100%;padding:10px 14px;border-radius:10px;border:1.5px solid #334155;background:#1e293b;color:#fff;font-size:16px;outline:none}
  .mm.open{display:block;background:#0f172a;padding:8px 12px 12px;max-height:calc(100vh - 130px);overflow-y:auto}
  .mm a{display:block;padding:10px 12px;color:#cbd5e1;border-radius:8px;font-size:.95rem}
  .mm a.grp{display:flex;justify-content:space-between;font-weight:700;color:#e2e8f0}.mg.open>a.grp{background:#1e293b;color:#fff}
  .mm a.sub{padding-left:26px;font-size:.88rem;color:#94a3b8}
  .tc{grid-template-columns:1fr 1fr;gap:10px}.tcard{padding:14px 12px}.tcard .ti{font-size:1.8rem}.tcard h3{font-size:.95rem}.tcard p{display:none}
  .segs,.cch{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.segs::-webkit-scrollbar,.cch::-webkit-scrollbar{display:none}
  .seg,.cc{flex:none;white-space:nowrap}.seg{padding:8px 13px;font-size:.82rem}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .product-desc{display:none}.product-footer{flex-direction:column;align-items:stretch;gap:8px}
  .trust-in{grid-template-columns:repeat(2,1fr);gap:10px}.tb{padding:14px 8px}.tb i{font-size:1.6rem}.tb b{font-size:.88rem}
  .ft2-in{grid-template-columns:1fr}.ft2{padding-top:24px}
  .form-control,input,select,textarea{font-size:16px}
  .btn{min-height:42px}.pmeth label{padding:9px 4px;font-size:.82rem}
}
