@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=Sora:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    --ink: #101B3D;
    --ink-soft: #5B6478;
    --paper: #F7F9FC;
    --paper-alt: #E8EEFF;
    --card: #FFFFFF;
    --border: #E3E8F5;
    --brand: #2F5DFB;
    --brand-dark: #1B3FD1;
    --seal: #FF7A29;
    --seal-soft: #FFE7D6;
    --success: #17A398;
    --success-bg: #E7FBF6;
    --error: #D64545;
    --error-bg: #FDEAEA;
    --pending-bg: #FFF4DE;
    --pending-ink: #9A6A00;
    --radius: 14px;
    --font-display: 'Fraunces', 'Sora', serif;
    --font-body: 'Sora', -apple-system, Segoe UI, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 12px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Store header / footer ---------- */
.store-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
}
.store-header-inner {
    max-width: 1100px; margin: 0 auto; padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.store-logo {
    font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.store-header nav a { color: var(--ink-soft); font-weight: 600; margin-left: 20px; text-decoration: none; }
.store-footer {
    text-align: center; padding: 40px 20px; color: var(--ink-soft); font-size: 13px;
    border-top: 1px solid var(--border); margin-top: 60px;
}

/* ---------- Hero (signature: certificate seal motif) ---------- */
.hero {
    max-width: 900px; margin: 0 auto; padding: 70px 24px 40px; text-align: center; position: relative;
}
.hero h1 {
    font-size: 40px; font-weight: 800; letter-spacing: -0.5px;
}
.hero::before {
    content: '✓ CERTIFIED LICENSES';
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 2px; font-weight: 600;
    color: var(--seal);
    background: var(--seal-soft);
    border: 1px solid var(--seal);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 18px;
}
.hero p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Product grid ---------- */
.product-grid {
    max-width: 1100px; margin: 0 auto 60px; padding: 0 24px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px;
}
.product-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27,35,64,0.08); text-decoration: none; }
.product-card img { width: 100%; height: 160px; object-fit: cover; }
.product-card-placeholder {
    width: 100%; height: 160px; display: flex; align-items: center; justify-content: center;
    background: var(--paper-alt); font-size: 42px;
}
.product-card-placeholder.large { height: 320px; border-radius: var(--radius); }
.product-card-body { padding: 16px 18px 20px; }
.product-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.product-card-body p { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; min-height: 34px; }
.price, .price-large {
    font-family: var(--font-mono); font-weight: 600; color: var(--brand-dark);
}
.price { font-size: 16px; }
.price-large { font-size: 26px; margin: 6px 0 18px; }

/* ---------- Single product ---------- */
.single-product { max-width: 1000px; margin: 0 auto; padding: 40px 24px 60px; }
.single-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.single-product-image img { border-radius: var(--radius); border: 1px solid var(--border); }
.short-desc { color: var(--ink-soft); font-size: 15px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; }
.feature-list li { margin-bottom: 8px; }
.single-product-description { margin-top: 50px; border-top: 1px solid var(--border); padding-top: 30px; }
@media (max-width: 700px) { .single-product-grid { grid-template-columns: 1fr; } }

/* ---------- Checkout ---------- */
.checkout-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.checkout-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 700px) { .checkout-grid { grid-template-columns: 1fr; } }
.payment-buttons { margin-top: 22px; }

/* ---------- Cards / shared components ---------- */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; margin-bottom: 22px;
}
.card h2 { font-size: 17px; margin-bottom: 16px; }

label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: var(--font-body); background: var(--paper); color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.hint { font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn {
    display: inline-block; border: none; border-radius: 999px; padding: 12px 24px;
    font-family: var(--font-body); font-weight: 700; font-size: 14.5px; cursor: pointer;
    transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--seal); color: #fff; box-shadow: 0 10px 22px -10px rgba(255,122,41,0.5); }
.btn-primary:hover { background: #E85E0F; text-decoration: none; }
.btn-secondary { background: var(--paper-alt); color: var(--brand-dark); }
.btn-block { width: 100%; text-align: center; }
.btn-large { padding: 15px 30px; font-size: 16px; }


.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-paid, .badge-active { background: var(--success-bg); color: var(--success); }
.badge-pending { background: var(--pending-bg); color: var(--pending-ink); }
.badge-failed, .badge-revoked, .badge-expired { background: var(--error-bg); color: var(--error); }

/* ---------- License key display (signature element) ---------- */
.license-chip {
    font-family: var(--font-mono); font-weight: 600; letter-spacing: 1px;
    background: var(--seal-soft); border: 1px dashed var(--seal); border-radius: 8px;
    padding: 10px 16px; display: inline-block; color: #6b5510;
}

/* ---------- Admin layout ---------- */
.admin-body { background: var(--paper-alt); }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px; background: var(--ink); color: #fff; flex-shrink: 0;
    padding: 24px 0; position: sticky; top: 0; height: 100vh;
}
.admin-logo { font-family: var(--font-display); font-weight: 700; padding: 0 20px 20px; font-size: 17px; display: flex; align-items: center; }
.admin-sidebar nav { display: flex; flex-direction: column; }
.admin-sidebar nav a {
    color: #C7CCE6; text-decoration: none; padding: 11px 20px; font-size: 14px; font-weight: 500;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar nav a.logout { margin-top: auto; color: #F0A0A0; }
.admin-main { flex: 1; padding: 32px 36px; max-width: 1100px; }
.page-title { font-size: 22px; margin-bottom: 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
    text-align: left; padding: 10px 12px; background: var(--paper-alt); color: var(--ink-soft);
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.detail-table td { padding: 8px 12px 8px 0; font-size: 14px; }
.detail-table td:first-child { color: var(--ink-soft); width: 180px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 260px; }

.actions-cell { white-space: nowrap; }
.link-btn {
    background: none; border: none; color: var(--brand); cursor: pointer; font-size: 13px;
    padding: 0; font-family: var(--font-body); text-decoration: underline;
}
.link-btn:hover { color: var(--brand-dark); }

/* ---------- Login ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--paper-alt); }
.login-box {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; width: 100%; max-width: 360px;
}
.login-box h1 { font-size: 20px; text-align: center; }
.login-box .sub { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: -8px; margin-bottom: 20px; }

/* =====================================================
   Marketing pages (Home, About, Contact, Privacy, Terms, Refund)
   Matches the DigitallyHetal WordPress theme design 1:1
   ===================================================== */
.wrap { max-width:1180px; margin:0 auto; padding:0 28px; }
section.dh-section { padding:70px 0; }
@media(max-width:720px){ section.dh-section{padding:48px 0;} .wrap{padding:0 20px;} }

.dh-btn{ display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:100px; font-weight:700; font-size:15px; border:1.5px solid transparent; cursor:pointer; transition:.18s; text-decoration:none; }
.dh-btn:hover{ transform:translateY(-2px); }
.dh-btn-primary{ background:var(--ink); color:#fff; }
.dh-btn-gold{ background:var(--seal); color:#fff; box-shadow:0 10px 24px -10px rgba(255,122,41,0.5); }
.dh-btn-ghost{ border-color:var(--border); color:var(--ink); background:#fff; }
.dh-btn-block{ width:100%; justify-content:center; }

.dh-eyebrow{ display:inline-flex; align-items:center; gap:8px; background:var(--paper-alt); color:var(--brand-dark); font-size:13px; font-weight:700; padding:8px 16px; border-radius:100px; margin-bottom:18px; }
.dh-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--seal); }

/* Hero */
.dh-hero{ padding:70px 0 30px; }
.dh-hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; }
@media(max-width:900px){ .dh-hero-grid{grid-template-columns:1fr;} }
.dh-hero h1{ font-family:var(--font-display); font-size:50px; font-weight:700; line-height:1.08; margin-bottom:18px; color:var(--ink); }
.dh-hero h1 em{ font-style:normal; color:var(--brand); }
.dh-hero p.lead{ font-size:18px; color:var(--ink-soft); max-width:520px; margin-bottom:28px; line-height:1.6; }
.dh-hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:32px; }
.dh-hero-trust{ display:flex; gap:26px; flex-wrap:wrap; }
.dh-hero-trust div{ display:flex; flex-direction:column; }
.dh-hero-trust b{ font-family:var(--font-display); font-size:22px; color:var(--ink); }
.dh-hero-trust span{ font-size:12px; color:var(--ink-soft); font-weight:600; }
@media(max-width:560px){ .dh-hero h1{font-size:34px;} }

.dh-term-card{ background:var(--ink); border-radius:20px; padding:26px; color:#E8EEFF; box-shadow:0 20px 50px -20px rgba(16,27,61,0.3); }
.dh-term-dots{ display:flex; gap:7px; margin-bottom:16px; }
.dh-term-dots span{ width:11px; height:11px; border-radius:50%; display:inline-block; }
.dh-term-dots span:nth-child(1){background:#FF6159;} .dh-term-dots span:nth-child(2){background:#FFBD2E;} .dh-term-dots span:nth-child(3){background:#28C840;}
.dh-term-line{ font-family:var(--font-mono); font-size:13px; line-height:2; }
.dh-term-line .prompt{ color:var(--seal); }
.dh-term-line .pkg{ color:#9FE3D8; }

/* Stat bar */
.dh-statbar{ background:var(--ink); color:#fff; padding:26px 0; }
.dh-statbar .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.dh-statbar div{ text-align:center; flex:1; min-width:120px; }
.dh-statbar b{ font-family:var(--font-display); font-size:24px; color:var(--seal); }
.dh-statbar span{ display:block; font-size:12px; color:#B9C4E8; margin-top:2px; }

/* Section head */
.dh-sec-head{ max-width:600px; margin-bottom:40px; }
.dh-sec-head h2{ font-family:var(--font-display); font-size:32px; font-weight:600; margin-bottom:12px; color:var(--ink); }
.dh-sec-head p{ color:var(--ink-soft); font-size:15.5px; line-height:1.6; }

/* Product cards (marketing grid — separate from admin .data-table cards) */
.dh-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media(max-width:860px){ .dh-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .dh-grid{grid-template-columns:1fr;} }
.dh-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:.2s; display:flex; flex-direction:column; text-decoration:none; color:var(--ink); }
.dh-card:hover{ transform:translateY(-5px); box-shadow:0 20px 50px -20px rgba(16,27,61,0.22); }
.dh-card-top{ height:140px; display:flex; align-items:center; justify-content:center; font-size:40px; background:var(--paper-alt); overflow:hidden; }
.dh-card-top img{ width:100%; height:100%; object-fit:cover; }
.dh-card-body{ padding:18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.dh-card-body h3{ font-family:var(--font-body); font-size:16px; font-weight:700; }
.dh-card-body p{ font-size:13px; color:var(--ink-soft); line-height:1.5; }
.dh-price-row{ display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
.dh-price{ font-family:var(--font-mono); font-weight:700; font-size:16px; color:var(--ink); }
.dh-add{ background:var(--paper-alt); color:var(--brand-dark); border:none; padding:9px 16px; border-radius:100px; font-weight:700; font-size:12.5px; }

/* Categories */
.dh-cat-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media(max-width:900px){ .dh-cat-strip{grid-template-columns:repeat(2,1fr);} }
.dh-cat{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:24px 20px; }
.dh-cat .ic{ font-size:26px; margin-bottom:12px; }
.dh-cat h4{ font-size:15px; margin-bottom:4px; font-weight:700; color:var(--ink); }
.dh-cat span{ font-size:12.5px; color:var(--ink-soft); }

/* Why us */
.dh-why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
@media(max-width:900px){ .dh-why-grid{grid-template-columns:1fr;} }
.dh-why-visual{ background:linear-gradient(155deg, var(--brand), var(--brand-dark)); border-radius:24px; padding:40px; color:#fff; min-height:280px; display:flex; flex-direction:column; justify-content:center; gap:14px; }
.dh-why-visual h3{ font-family:var(--font-display); font-size:24px; color:#fff; }
.dh-why-visual p{ color:#D7E0FF; font-size:14px; }

/* Testimonials */
.dh-test-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media(max-width:900px){ .dh-test-grid{grid-template-columns:1fr;} }
.dh-test{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:22px; }
.dh-stars{ color:var(--seal); font-size:13px; margin-bottom:10px; }
.dh-test p{ font-size:14px; color:var(--ink-soft); line-height:1.6; }

/* CTA */
.dh-cta{ background:var(--ink); color:#fff; border-radius:26px; padding:56px 40px; text-align:center; }
.dh-cta h2{ font-family:var(--font-display); font-size:30px; margin-bottom:12px; color:#fff; }
.dh-cta p{ color:#B9C4E8; margin-bottom:24px; max-width:500px; margin-left:auto; margin-right:auto; }

/* Contact / info cards */
.dh-info-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:10px; }
@media(max-width:900px){ .dh-info-strip{grid-template-columns:repeat(2,1fr);} }
.dh-info-card{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:20px 16px; text-align:center; }
.dh-info-card .ic{ font-size:22px; margin-bottom:10px; }
.dh-info-card h4{ font-size:14px; margin-bottom:4px; font-weight:700; color:var(--ink); }
.dh-info-card span, .dh-info-card a{ font-size:12.5px; color:var(--ink-soft); }
.dh-info-card a{ color:var(--brand); font-weight:700; }

.dh-contact-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:32px; align-items:start; }
@media(max-width:900px){ .dh-contact-grid{grid-template-columns:1fr;} }
.dh-form-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:30px; }
.dh-field{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.dh-field label{ font-size:12.5px; font-weight:700; color:var(--ink); }
.dh-field input, .dh-field textarea{ border:1.5px solid var(--border); border-radius:10px; padding:11px 13px; font-family:var(--font-body); font-size:13.5px; background:var(--paper); width:100%; }
.dh-field input:focus, .dh-field textarea:focus{ outline:none; border-color:var(--brand); background:#fff; }
.dh-form-success{ background:var(--success-bg); color:var(--success); padding:12px 16px; border-radius:10px; font-size:13.5px; font-weight:700; margin-bottom:16px; }

/* Static legal/content pages */
.dh-page-content{ max-width:760px; }
.dh-page-content h1{ font-family:var(--font-display); font-size:32px; margin-bottom:24px; color:var(--ink); }
.dh-page-content h2{ font-family:var(--font-display); font-size:22px; margin:28px 0 10px; color:var(--ink); }
.dh-page-content h3{ font-family:var(--font-body); font-size:16px; font-weight:700; margin:22px 0 8px; color:var(--ink); }
.dh-page-content p{ font-size:14.5px; color:var(--ink-soft); line-height:1.75; margin-bottom:10px; }

/* Footer (marketing) — replaces the plain store-footer for content pages */
.dh-footer{ background:#0B142E; color:#B9C4E8; padding:44px 0 24px; margin-top:20px; }
.dh-foot-top{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; margin-bottom:24px; }
.dh-foot-logo{ display:flex; align-items:center; gap:10px; color:#fff; font-family:var(--font-display); font-weight:700; font-size:18px; }
.dh-foot-links{ display:flex; gap:20px; flex-wrap:wrap; }
.dh-foot-links a{ color:#B9C4E8; font-size:13px; }
.dh-foot-links a:hover{ color:#fff; }
.dh-social{ display:flex; gap:10px; }
.dh-social a{ width:32px; height:32px; border-radius:50%; background:#1A2650; display:flex; align-items:center; justify-content:center; font-size:13px; color:#fff; text-decoration:none; }
.dh-social a:hover{ background:var(--brand); }
.dh-foot-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12px; border-top:1px solid #1F2B52; padding-top:20px; }
