/* =====================================================
   GARANCIO - Dizajn modern SaaS
   Paleta: blu (#2563eb), e bardhë, gri e lehtë
   ===================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-soft: #eff6ff;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f1f5f9;
    --bg-soft: #f8fafc;
    --white: #ffffff;
    --green: #16a34a;
    --green-bg: #dcfce7;
    --amber: #d97706;
    --amber-bg: #fef3c7;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-lg: 0 8px 30px rgba(15, 23, 42, .12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.icon { vertical-align: -4px; flex-shrink: 0; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 14.5px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ============ NAVBAR (publike) ============ */
.public-body { background: var(--white); }
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), #4f8df9); color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--text); font-weight: 500; font-size: 14.5px; }
.nav-links > a:hover { color: var(--primary); }
.nav-login { font-weight: 600 !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

.lang-switch { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--muted); font-weight: 600; }
.lang-switch a.active { color: var(--primary); }

/* ============ HERO ============ */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 500px at 80% -10%, var(--primary-light), transparent 60%),
        radial-gradient(800px 400px at 10% 110%, #e0e9ff, transparent 55%),
        var(--white);
    padding: 96px 0 110px; text-align: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-soft); color: var(--primary);
    border: 1px solid var(--primary-light);
    padding: 7px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(34px, 5.5vw, 58px); line-height: 1.12;
    color: var(--ink); font-weight: 800; letter-spacing: -1.5px;
    max-width: 800px; margin: 0 auto 22px;
}
.hero h1 span {
    background: linear-gradient(95deg, var(--primary), #7c3aed);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Mock dashboard preview në hero */
.hero-preview {
    max-width: 860px; margin: 64px auto 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: 18px; box-shadow: var(--shadow-lg);
    padding: 22px; text-align: left;
}
.hero-preview-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.hero-preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.hero-preview-bar i:first-child { background: #fda4af; }
.hero-preview-bar i:nth-child(2) { background: #fcd34d; }
.hero-preview-bar i:nth-child(3) { background: #86efac; }
.hero-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ============ SEKSIONET ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); color: var(--ink); font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px 26px;
    transition: all .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 13px;
    background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
}
.feature-card h3 { color: var(--ink); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { text-align: center; padding: 28px 20px; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4f8df9); color: #fff;
    font-size: 22px; font-weight: 800; margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
}
.step-card h3 { color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

.cta-band {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #4f8df9);
    border-radius: 22px; padding: 64px 40px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.6px; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 28px; }
.cta-band .btn { background: #fff; color: var(--primary); box-shadow: none; }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 26px; justify-content: center; }
.price-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 18px; padding: 38px 32px; position: relative;
    display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700;
    padding: 5px 16px; border-radius: 100px; white-space: nowrap;
}
.price-card h3 { color: var(--ink); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.price-card .price-desc { color: var(--muted); font-size: 14px; min-height: 44px; }
.price-amount { margin: 22px 0; color: var(--ink); }
.price-amount strong { font-size: 46px; font-weight: 800; letter-spacing: -2px; }
.price-amount span { color: var(--muted); font-size: 15px; }
.price-features { list-style: none; margin: 0 0 28px; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; }
.price-features .icon { color: var(--green); margin-top: 2px; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #cbd5e1; padding: 36px 0; margin-top: 0; }
.footer .brand, .footer .brand-name { color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner p { font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #cbd5e1; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }

/* ============ AUTH ============ */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 50px 20px; background: radial-gradient(900px 460px at 70% -10%, var(--primary-light), transparent 60%), var(--bg-soft); }
.auth-card {
    width: 100%; max-width: 440px; background: var(--white);
    border: 1px solid var(--border); border-radius: 18px;
    padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { color: var(--ink); font-size: 25px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }

.plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.plan-option input { position: absolute; opacity: 0; }
.plan-option .plan-box {
    display: block; border: 2px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; cursor: pointer; text-align: center; transition: all .15s;
}
.plan-option .plan-box strong { display: block; color: var(--ink); font-size: 14.5px; }
.plan-option .plan-box small { color: var(--muted); font-size: 12px; }
.plan-option input:checked + .plan-box { border-color: var(--primary); background: var(--primary-soft); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-label .opt { color: var(--muted); font-weight: 400; }
.form-control {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 14.5px; color: var(--ink);
    background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
input[type="color"].form-control { padding: 4px; height: 46px; cursor: pointer; }

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 30px 20px; text-align: center; cursor: pointer;
    color: var(--muted); transition: all .15s; background: var(--bg-soft);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.upload-zone input { display: none; }
.upload-zone .icon { color: var(--primary); }
#fileList { margin-top: 10px; font-size: 13.5px; color: var(--text); }
#fileList div { padding: 4px 0; display: flex; align-items: center; gap: 8px; }

/* ============ ALERTS / BADGES ============ */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: #14532d; border-color: #bbf7d0; }
.alert-error { background: var(--red-bg); color: #7f1d1d; border-color: #fecaca; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary-light); }

.badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 12px; border-radius: 100px;
    font-size: 12.5px; font-weight: 600;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--green-bg); color: var(--green); }
.badge-expiring { background: var(--amber-bg); color: var(--amber); }
.badge-expired { background: var(--red-bg); color: var(--red); }
.badge-muted { background: var(--bg); color: var(--muted); }

/* ============ APP LAYOUT ============ */
.app-body { background: var(--bg); }
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 256px; flex-shrink: 0; background: var(--white);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand { padding: 22px 22px 10px; }
.sidebar-plan {
    margin: 4px 22px 14px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; color: var(--primary);
    background: var(--primary-soft); padding: 4px 10px; border-radius: 100px;
    width: fit-content; text-transform: uppercase; letter-spacing: .4px;
}
.sidebar-nav { padding: 8px 14px; flex: 1; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: var(--radius-sm);
    color: var(--text); font-size: 14.5px; font-weight: 500;
    margin-bottom: 2px; transition: all .13s;
    width: 100%; border: none; background: none; cursor: pointer; font-family: var(--font);
}
.sidebar-link:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sidebar-link .icon { color: inherit; opacity: .85; }
.nav-badge {
    margin-left: auto; background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 100px;
}
.sidebar-bottom { padding: 14px; border-top: 1px solid var(--border); }
.logout-btn { color: var(--muted); }
.logout-btn:hover { color: var(--red); background: var(--red-bg); }
.sidebar-overlay { display: none; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 66px; background: var(--white); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 18px; padding: 0 28px;
    position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-bell { position: relative; color: var(--muted); display: inline-flex; }
.topbar-bell:hover { color: var(--primary); }
.bell-dot {
    position: absolute; top: -6px; right: -8px;
    background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 100px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.topbar-user { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 14px; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
}

.content { padding: 28px; max-width: 1280px; width: 100%; }

/* ============ CARDS / STATS ============ */
.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.card-header h2 { font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.card-header h2 .icon { color: var(--primary); }
.card-body { padding: 24px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.stat-icon.blue { background: var(--primary-soft); color: var(--primary); }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-icon.amber { background: var(--amber-bg); color: var(--amber); }
.stat-icon.red { background: var(--red-bg); color: var(--red); }
.stat-info .stat-value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -1px; line-height: 1.15; }
.stat-info .stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    text-align: left; padding: 12px 16px; color: var(--muted);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    border-bottom: 1px solid var(--border); background: var(--bg-soft); white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--bg-soft); }
.table .t-product { font-weight: 600; color: var(--ink); }
.table .t-sub { font-size: 12.5px; color: var(--muted); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.table-actions .btn-icon { color: var(--muted); }
.table-actions .btn-icon:hover { color: var(--primary); background: var(--primary-soft); }
.table-actions form { display: inline; }

.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-state .icon { color: var(--border); margin-bottom: 12px; }
.empty-state p { margin-bottom: 16px; }

/* ============ FILTERS BAR ============ */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters .form-group { margin-bottom: 0; flex: 1; min-width: 150px; }
.filters .search-box { flex: 2; min-width: 220px; }

/* ============ NOTIFICATIONS PAGE ============ */
.notif-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-soft); }
.notif-icon {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: var(--amber-bg); color: var(--amber);
    display: inline-flex; align-items: center; justify-content: center;
}
.notif-body { flex: 1; }
.notif-body p { font-size: 14.5px; color: var(--ink); }
.notif-body time { font-size: 12.5px; color: var(--muted); }

/* ============ DOCUMENTS ============ */
.doc-item {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--bg-soft);
}
.doc-icon { color: var(--primary); display: inline-flex; }
.doc-name { flex: 1; min-width: 0; }
.doc-name strong { display: block; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-name small { color: var(--muted); font-size: 12px; }

/* ============ DETAILS LIST ============ */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 30px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.detail-row dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.detail-row dd { color: var(--ink); font-weight: 600; text-align: right; }

/* ============ TIMELINE (historiku) ============ */
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 18px; }
.timeline li::before {
    content: ''; position: absolute; left: -25px; top: 5px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--white); border: 3px solid var(--primary);
}
.timeline strong { color: var(--ink); font-size: 14px; display: block; }
.timeline small { color: var(--muted); font-size: 12.5px; }

/* ============ CHART (CSS bars) ============ */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-col .bar {
    width: 100%; max-width: 48px; border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #4f8df9, var(--primary));
    min-height: 4px; transition: height .3s;
}
.bar-col .bar-label { font-size: 12px; color: var(--muted); }
.bar-col .bar-value { font-size: 12.5px; font-weight: 700; color: var(--ink); }

/* ============ PAGE HEAD ============ */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; color: var(--ink); font-weight: 800; letter-spacing: -.4px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ CERTIFICATE ============ */
.cert-page { background: var(--bg); padding: 30px 16px; min-height: 100vh; }
.certificate {
    max-width: 760px; margin: 0 auto; background: #fff;
    border: 1px solid var(--border); border-radius: 4px; padding: 48px 54px;
    box-shadow: var(--shadow-lg); position: relative;
}
.cert-border { border: 3px double var(--cert-color, var(--primary)); padding: 38px 42px; }
.cert-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.cert-head img { max-height: 64px; max-width: 180px; object-fit: contain; }
.cert-biz h2 { color: var(--ink); font-size: 22px; letter-spacing: -.4px; }
.cert-biz p { color: var(--muted); font-size: 12.5px; }
.cert-title { text-align: center; margin: 8px 0 28px; }
.cert-title h1 { font-size: 26px; letter-spacing: 4px; color: var(--cert-color, var(--primary)); font-weight: 800; }
.cert-title small { color: var(--muted); letter-spacing: 1px; }
.cert-section h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--cert-color, var(--primary)); border-bottom: 1px solid var(--border);
    padding-bottom: 6px; margin: 22px 0 10px;
}
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 36px; }
.cert-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px dotted var(--border); }
.cert-row span { color: var(--muted); }
.cert-row strong { color: var(--ink); }
.cert-terms { font-size: 12px; color: var(--muted); margin-top: 24px; line-height: 1.6; }
.cert-sign { display: flex; justify-content: space-between; margin-top: 46px; gap: 40px; }
.cert-sign div { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.cert-sign div::before { content: ''; display: block; border-top: 1.5px solid var(--ink); margin-bottom: 8px; }
.cert-toolbar { max-width: 760px; margin: 0 auto 18px; display: flex; justify-content: space-between; gap: 12px; }

/* ============ PRINT ============ */
@media print {
    .no-print, .sidebar, .topbar, .navbar, .footer, .cert-toolbar { display: none !important; }
    body, .cert-page, .app-body { background: #fff !important; }
    .certificate { box-shadow: none; border: none; padding: 0; }
    .content { padding: 0; }
    .card { box-shadow: none; break-inside: avoid; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    /* Navbar publike */
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--white); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }

    /* Sidebar -> drawer */
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 200;
        transform: translateX(-100%); transition: transform .22s ease; height: 100%;
    }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .sidebar-overlay.show {
        display: block; position: fixed; inset: 0; z-index: 150;
        background: rgba(15, 23, 42, .45);
    }
    .topbar { padding: 0 16px; }
    .topbar-username { display: none; }
    .content { padding: 18px 14px; }

    .pricing-grid, .steps-grid, .features-grid { grid-template-columns: 1fr; }
    .form-grid, .detail-grid, .cert-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero { padding: 64px 0 70px; }
    .certificate { padding: 24px; }
    .cert-border { padding: 20px; }
    .cert-head { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-preview-grid { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; align-items: stretch; }
    .filters .form-group { min-width: 100%; }
}
