:root {
  --navy: #1b2a4a;
  --navy-2: #24365e;
  --accent: #2f6fed;
  --gold: #c9a24b;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-alt: #f6f7f9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.main-nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a.on, .main-nav a:hover { color: var(--navy); border-color: var(--accent); }
.header-note { margin-left: auto; font-size: 13px; color: var(--muted); }
.cat-bar { background: var(--navy); }
.cat-bar-inner { display: flex; gap: 18px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.cat-bar a { color: #cfd8ec; font-size: 13.5px; white-space: nowrap; }
.cat-bar a:hover { color: #fff; }
.cat-bar em { font-style: normal; font-size: 11px; background: rgba(255,255,255,.15); border-radius: 8px; padding: 1px 6px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #2d4272 100%); color: #fff; padding: 64px 0 72px; }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: 38px; line-height: 1.25; margin-bottom: 14px; }
.hero p { font-size: 18px; color: #d7dfee; margin-bottom: 18px; }
.checks { list-style: none; margin-bottom: 26px; }
.checks li { margin: 6px 0; font-size: 15.5px; color: #e8edf7; }
.checks.small li { color: var(--ink); font-size: 14.5px; margin: 4px 0; }
.btn-primary { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 13px 30px; border-radius: 8px; border: none; font-size: 16px; cursor: pointer; }
.btn-primary:hover { background: #245cd0; }

/* Sections */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 27px; color: var(--navy); margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }
.page-head { padding-bottom: 8px; }
.page-head h1 { font-size: 30px; color: var(--navy); }
.page-head p { color: var(--muted); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.product-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 6px 20px rgba(27,42,74,.12); }
.card-media { display: block; }
.media-ph { position: relative; height: 170px; overflow: hidden; background: linear-gradient(160deg, #eef1f7, #dfe5f0); display: flex; align-items: center; justify-content: center; }
.media-ph.large { height: 340px; }
.media-ph.ph-free { background: linear-gradient(160deg, #eaf7ee, #d3eeda); }
.file-badge { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 8px 18px; }
.file-badge.file-ppt, .file-badge.file-pptx { color: #b7472a; border-color: #b7472a; }
.file-badge.file-xls, .file-badge.file-xlsx { color: #1e6b40; border-color: #1e6b40; }
.file-badge.file-doc, .file-badge.file-docx { color: #2456a4; border-color: #2456a4; }
.pages { position: absolute; bottom: 10px; left: 12px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); border-radius: 6px; padding: 2px 8px; }
.card-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mini-badge { position: absolute; bottom: 10px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--navy); background: rgba(255,255,255,.92); border: 1px solid var(--navy); border-radius: 6px; padding: 2px 8px; }
.free-tag { position: absolute; top: 10px; right: 12px; background: #1e9e50; color: #fff; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 9px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.45; display: block; }
.card-title:hover { text-decoration: underline; }
.ref { color: var(--muted); font-weight: 500; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.card-meta .cat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-size: 19px; font-weight: 800; color: var(--navy); }
.btn-view { background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 700; padding: 8px 18px; border-radius: 7px; }
.btn-view:hover { background: var(--navy-2); }

/* How to use */
.use-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.use-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; }
.use-ico { font-size: 30px; margin-bottom: 10px; }
.use-card h3 { color: var(--navy); margin-bottom: 6px; }
.use-card p { color: var(--muted); font-size: 14.5px; }

/* Trust */
.trust { text-align: center; }
.trust p { color: var(--muted); max-width: 640px; margin: 0 auto 18px; }
.trust-row { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; font-weight: 700; color: var(--navy); font-size: 15px; }

/* Product page */
.breadcrumb { padding-top: 18px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.product-info h1 { font-size: 24px; color: var(--navy); line-height: 1.35; margin-bottom: 10px; }
.prod-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.prod-meta .cat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; }
.price-big { font-size: 34px; font-weight: 800; color: var(--navy); display: block; margin-bottom: 16px; }
.price-big.free { color: #1e9e50; }
.buy-box { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--bg-alt); margin-bottom: 20px; }
.btn-buy { width: 100%; font-size: 17px; }
.buy-note { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.buy-result { margin-top: 14px; font-size: 15px; }
.buy-result a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.prod-desc { color: var(--ink); margin-bottom: 16px; white-space: pre-line; }
.media-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.btn-preview { display: block; width: 100%; margin-top: 12px; padding: 11px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; border-radius: 8px; cursor: pointer; }
.btn-preview:hover { background: var(--navy); color: #fff; }
.btn-preview:disabled { opacity: .6; cursor: wait; }
.preview-gallery { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-gallery img { width: 100%; border: 1px solid var(--line); border-radius: 6px; display: block; }
.preview-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: center; }
.empty { color: var(--muted); padding: 30px 0; }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* My downloads */
.lookup-form { display: flex; gap: 10px; margin-bottom: 24px; }
.lookup-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.order-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.order-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: none; }

/* Footer */
.site-footer { background: var(--navy); color: #c6d0e4; padding: 44px 0 20px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { color: #fff; margin-bottom: 10px; }
.site-footer p { font-size: 14px; margin-bottom: 10px; }
.payline strong { color: #fff; }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: 15px; }
.site-footer a { display: block; font-size: 14px; margin: 6px 0; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 16px; font-size: 12.5px; color: #8fa0c0; }

/* Admin */
body.admin { background: var(--bg-alt); padding: 30px 0; }
body.admin h1 { color: var(--navy); margin-bottom: 16px; }
body.admin h2 { color: var(--navy); margin: 28px 0 12px; }
.pw-form, .upload-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; max-width: 560px; }
.pw-form label, .upload-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; color: var(--navy); }
.pw-form input, .upload-form input:not([type=file]), .upload-form textarea { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; font-family: inherit; }
.upload-form button { margin-top: 6px; }
.admin-msg { background: #fdecec; color: #a33; border: 1px solid #f3c1c1; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; max-width: 560px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { background: var(--bg-alt); color: var(--navy); }
.btn-mini { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 12.5px; }

/* Demo PayPal modal */
.dv-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; z-index: 100; }
.dv-modal { background: #fff; border-radius: 12px; width: 400px; max-width: 92vw; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dv-modal-head { background: #f5f7fa; border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.dv-paypal-logo { font-weight: 800; font-size: 19px; color: #003087; font-style: italic; }
.dv-paypal-logo i { color: #009cde; }
.dv-modal-body { padding: 20px 18px; }
.dv-amount { font-size: 30px; font-weight: 800; color: #2c2e2f; text-align: center; margin-bottom: 4px; }
.dv-merchant { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.dv-field { margin-bottom: 12px; }
.dv-field label { display: block; font-size: 12.5px; font-weight: 600; color: #2c2e2f; margin-bottom: 4px; }
.dv-field input { width: 100%; padding: 10px 12px; border: 1px solid #cbd2d9; border-radius: 6px; font-size: 14px; }
.dv-pay-btn { width: 100%; background: #ffc439; color: #003087; font-weight: 800; font-size: 16px; border: none; border-radius: 22px; padding: 12px; cursor: pointer; margin-top: 6px; }
.dv-pay-btn:hover { background: #f2b930; }
.dv-cancel { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.dv-demo-tag { background: #fff4d6; color: #8a6d1a; font-size: 11.5px; border-radius: 6px; padding: 2px 8px; }
