body { min-height: 100vh; }

/* ── NAVBAR ── */
.navbar-custom { background: var(--clr-surface-elevated); backdrop-filter: blur(20px); border-bottom: 1px solid var(--clr-border); }
.navbar-brand-custom { font-size: 1.3rem; font-weight: 800; color: var(--clr-on-surface); text-decoration: none; }
.btn-nav-login { background: var(--clr-white-hover); border: 1px solid var(--clr-border); color: var(--clr-white-soft); border-radius: 10px; font-size: 0.83rem; font-weight: 600; padding: 6px 16px; transition: all 0.2s; text-decoration: none; }
.btn-nav-login:hover { background: var(--clr-grid-line); color: var(--clr-on-surface); }
.btn-nav-register { background: linear-gradient(135deg, var(--clr-primary), #4f46e5); border: none; color: #fff; border-radius: 10px; font-size: 0.83rem; font-weight: 600; padding: 6px 16px; transition: all 0.2s; box-shadow: 0 4px 14px rgba(99,102,241,0.35); text-decoration: none; }
.btn-nav-register:hover { transform: translateY(-1px); color: #fff; }

/* ── BLOBS ── */
.blob { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.blob-1 { width: 600px; height: 600px; background: rgba(99,102,241,0.07); top: -200px; right: -150px; }
.blob-2 { width: 500px; height: 500px; background: rgba(6,182,212,0.05); bottom: -100px; left: -100px; }

/* ── PAGE WRAP ── */
.page-wrap { padding: 40px 0 60px; position: relative; z-index: 1; }

/* ── ACTION BAR ── */
.action-bar {
    background: var(--clr-surface-elevated); backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border); border-radius: 18px;
    padding: 14px 22px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-bottom: 32px;
}
.action-bar-info { display: flex; align-items: center; gap: 10px; }
.action-bar-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(99,102,241,0.15); display: flex; align-items: center; justify-content: center; color: var(--clr-primary-2); font-size: 1rem; }
.action-bar-text strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--clr-on-surface); }
.action-bar-text span { font-size: 0.75rem; color: var(--clr-muted); }
.action-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action {
    display: inline-flex; align-items: center; gap: 7px;
    border-radius: 12px; font-size: 0.82rem; font-weight: 700;
    padding: 9px 18px; cursor: pointer; transition: all 0.2s;
    text-decoration: none; border: none; font-family: 'Cairo', sans-serif;
}
.btn-print  { background: var(--clr-white-hover); border: 1px solid var(--clr-border); color: var(--clr-white-soft); }
.btn-print:hover  { background: var(--clr-grid-line); color: var(--clr-on-surface); }
.btn-download { background: linear-gradient(135deg, var(--clr-primary), #4f46e5); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.btn-download:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99,102,241,0.45); color: #fff; }
.btn-share { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25); color: var(--clr-accent); }
.btn-share:hover { background: rgba(6,182,212,0.18); color: #fff; }

/* ── CERTIFICATE WRAPPER ── */
.cert-outer { display: flex; justify-content: center; }
.cert-shadow-wrap {
    filter: drop-shadow(0 30px 80px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(99,102,241,0.15));
    width: 100%; max-width: 900px;
}

/* ── CERTIFICATE CARD ── */
#certificateCard {
    width: 900px; min-height: 636px;
    position: relative; overflow: hidden;
    font-family: 'Cairo', sans-serif;
}

/* Background themes */
.cert-bg-classic  { background: linear-gradient(160deg, #f8f6f0 0%, #ede8dc 100%); }
.cert-bg-dark     { background: linear-gradient(160deg, #0d1117 0%, #161b27 100%); }
.cert-bg-royal    { background: linear-gradient(160deg, #0a0a2e 0%, #1a1a5e 100%); }
.cert-bg-emerald  { background: linear-gradient(160deg, #022c22 0%, #064e3b 100%); }
.cert-bg-gold     { background: linear-gradient(160deg, #1c1400 0%, #2d2000 100%); }

/* ── FRAME ── */
.cert-frame { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cert-frame-inner { position: absolute; inset: 12px; border: 2px solid; border-radius: 4px; }
.cert-frame-corner { position: absolute; width: 40px; height: 40px; }
.cert-frame-corner::before, .cert-frame-corner::after { content: ''; position: absolute; background: currentColor; }
.cert-frame-corner::before { width: 100%; height: 3px; top: 0; left: 0; }
.cert-frame-corner::after  { width: 3px; height: 100%; top: 0; left: 0; }
.cert-frame-corner.tr { top: 8px; right: 8px; transform: rotate(90deg); }
.cert-frame-corner.bl { bottom: 8px; left: 8px; transform: rotate(270deg); }
.cert-frame-corner.br { bottom: 8px; right: 8px; transform: rotate(180deg); }
.cert-frame-corner.tl { top: 8px; left: 8px; }

/* ── BARS ── */
.cert-bar-top, .cert-bar-bottom { position: absolute; left: 0; right: 0; height: 10px; z-index: 2; }
.cert-bar-top { top: 0; }
.cert-bar-bottom { bottom: 0; }

/* ── WATERMARK ── */
.cert-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.05; font-size: 160px; font-weight: 900; pointer-events: none; z-index: 1; white-space: nowrap; user-select: none; }

/* ── CONTENT ── */
.cert-content { position: relative; z-index: 3; padding: 40px 60px 36px; display: flex; flex-direction: column; align-items: center; min-height: 636px; }

.cert-header { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 20px; }
.cert-logo { display: flex; align-items: center; gap: 8px; }
.cert-logo-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.cert-logo-text { font-size: 1.3rem; font-weight: 900; }
.cert-id-badge { font-size: 0.65rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.05em; }

.cert-photo-wrap { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 3px solid; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: rgba(255,255,255,0.1); }
.cert-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: none; }
.cert-photo-wrap.has-photo img { display: block; }
.cert-photo-wrap.has-photo .photo-placeholder { display: none; }

.cert-title-block { text-align: center; margin-bottom: 16px; }
.cert-main-title { font-family: 'Cinzel', serif; font-size: 2.4rem; font-weight: 900; letter-spacing: normal; line-height: 1.1; }
.cert-sub-title  { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 400; letter-spacing: normal; margin-top: 4px; }

.cert-ribbon { display: inline-block; padding: 5px 28px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: normal; text-transform: uppercase; margin: 10px 0 6px; }
.cert-name { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; text-align: center; margin: 4px 0 10px; line-height: 1.2; }
.cert-program-name { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600; text-align: center; letter-spacing: normal; margin: 4px 0; }
.cert-score-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin: 8px 0; }
.cert-date-ribbon { font-size: 0.72rem; font-weight: 700; letter-spacing: normal; padding: 4px 20px; border-radius: 4px; margin: 6px 0 14px; }
.cert-desc { font-size: 0.72rem; text-align: center; line-height: 1.7; max-width: 580px; margin: 0 auto 16px; }

.cert-footer { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 12px; }

.cert-seal { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 3px solid; }
.cert-seal-inner { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 2px solid; }
.cert-seal-icon { font-size: 1.4rem; }
.cert-seal-text { font-size: 0.45rem; font-weight: 700; letter-spacing: normal; text-align: center; line-height: 1.3; }

.cert-sig-block { text-align: center; }
.cert-sig-line { width: 160px; height: 1px; margin: 0 auto 4px; }
.cert-sig-name  { font-size: 0.75rem; font-weight: 700; }
.cert-sig-title { font-size: 0.65rem; opacity: 0.6; }
.cert-sig-img   { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.4rem; margin-bottom: 2px; }

.cert-qr-wrap  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cert-qr-box   { width: 72px; height: 72px; background: #fff; border-radius: 6px; padding: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-qr-box img { width: 100%; height: 100%; }
.cert-qr-box svg { width: 64px; height: 64px; }
.cert-qr-label { font-size: 0.55rem; font-weight: 700; letter-spacing: normal; opacity: 0.5; }

/* ── THEME COLORS ── */
.theme-classic .cert-bar-top,.theme-classic .cert-bar-bottom { background: linear-gradient(90deg,#1e3a5f,#2563eb,#1e3a5f); }
.theme-classic .cert-frame-inner { border-color: rgba(37,99,235,0.3); }
.theme-classic .cert-frame-corner { color: #2563eb; }
.theme-classic .cert-watermark { color: #1e3a5f; }
.theme-classic .cert-logo-text { color: #1e3a5f; }
.theme-classic .cert-logo-dot { color: #2563eb; }
.theme-classic .cert-logo-icon { background: #dbeafe; color: #1e3a5f; }
.theme-classic .cert-id-badge { background: #dbeafe; color: #1e40af; }
.theme-classic .cert-main-title { color: #1e3a5f; }
.theme-classic .cert-sub-title { color: #3b82f6; }
.theme-classic .cert-ribbon { background: #1e3a5f; color: #fff; }
.theme-classic .cert-name { color: #1e3a5f; }
.theme-classic .cert-program-name { color: #2563eb; }
.theme-classic .cert-score-badge { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.theme-classic .cert-date-ribbon { background: #1e3a5f; color: #fff; }
.theme-classic .cert-desc { color: #475569; }
.theme-classic .cert-photo-wrap { border-color: #2563eb; color: #1e3a5f; }
.theme-classic .cert-seal { border-color: #b45309; }
.theme-classic .cert-seal-inner { background: #fef3c7; border-color: #d97706; color: #92400e; }
.theme-classic .cert-seal-icon { color: #b45309; }
.theme-classic .cert-seal-text { color: #92400e; }
.theme-classic .cert-sig-line { background: #1e3a5f; }
.theme-classic .cert-sig-name { color: #1e3a5f; }
.theme-classic .cert-sig-title { color: #475569; }
.theme-classic .cert-sig-img { color: #1e3a5f; }
.theme-classic .cert-qr-label { color: #1e3a5f; }

.theme-dark .cert-bar-top,.theme-dark .cert-bar-bottom { background: linear-gradient(90deg,#6366f1,#818cf8,#6366f1); }
.theme-dark .cert-frame-inner { border-color: rgba(99,102,241,0.3); }
.theme-dark .cert-frame-corner { color: #6366f1; }
.theme-dark .cert-watermark { color: #6366f1; }
.theme-dark .cert-logo-text { color: #fff; }
.theme-dark .cert-logo-dot { color: #6366f1; }
.theme-dark .cert-logo-icon { background: rgba(99,102,241,0.2); color: #818cf8; }
.theme-dark .cert-id-badge { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.theme-dark .cert-main-title { color: #fff; }
.theme-dark .cert-sub-title { color: #818cf8; }
.theme-dark .cert-ribbon { background: rgba(99,102,241,0.2); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.35); }
.theme-dark .cert-name { color: #e2e8f0; }
.theme-dark .cert-program-name { color: #818cf8; }
.theme-dark .cert-score-badge { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.theme-dark .cert-date-ribbon { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.theme-dark .cert-desc { color: #94a3b8; }
.theme-dark .cert-photo-wrap { border-color: #6366f1; color: #818cf8; background: rgba(99,102,241,0.1); }
.theme-dark .cert-seal { border-color: #f59e0b; }
.theme-dark .cert-seal-inner { background: rgba(245,158,11,0.1); border-color: #d97706; }
.theme-dark .cert-seal-icon { color: #fbbf24; }
.theme-dark .cert-seal-text { color: #fbbf24; }
.theme-dark .cert-sig-line { background: rgba(255,255,255,0.2); }
.theme-dark .cert-sig-name { color: #e2e8f0; }
.theme-dark .cert-sig-title { color: #94a3b8; }
.theme-dark .cert-sig-img { color: #a5b4fc; }
.theme-dark .cert-qr-label { color: #94a3b8; }

.theme-royal .cert-bar-top,.theme-royal .cert-bar-bottom { background: linear-gradient(90deg,#7c3aed,#a855f7,#7c3aed); }
.theme-royal .cert-frame-inner { border-color: rgba(168,85,247,0.4); }
.theme-royal .cert-frame-corner { color: #a855f7; }
.theme-royal .cert-watermark { color: #7c3aed; }
.theme-royal .cert-logo-text { color: #e9d5ff; }
.theme-royal .cert-logo-dot { color: #a855f7; }
.theme-royal .cert-logo-icon { background: rgba(168,85,247,0.2); color: #c084fc; }
.theme-royal .cert-id-badge { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.theme-royal .cert-main-title { color: #f3e8ff; }
.theme-royal .cert-sub-title { color: #c084fc; }
.theme-royal .cert-ribbon { background: rgba(168,85,247,0.2); color: #e9d5ff; border: 1px solid rgba(168,85,247,0.4); }
.theme-royal .cert-name { color: #f3e8ff; }
.theme-royal .cert-program-name { color: #c084fc; }
.theme-royal .cert-score-badge { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.theme-royal .cert-date-ribbon { background: rgba(168,85,247,0.15); color: #e9d5ff; border: 1px solid rgba(168,85,247,0.3); }
.theme-royal .cert-desc { color: #c4b5fd; }
.theme-royal .cert-photo-wrap { border-color: #a855f7; color: #c084fc; background: rgba(168,85,247,0.1); }
.theme-royal .cert-seal { border-color: #f59e0b; }
.theme-royal .cert-seal-inner { background: rgba(245,158,11,0.1); border-color: #d97706; }
.theme-royal .cert-seal-icon { color: #fbbf24; }
.theme-royal .cert-seal-text { color: #fbbf24; }
.theme-royal .cert-sig-line { background: rgba(168,85,247,0.4); }
.theme-royal .cert-sig-name { color: #e9d5ff; }
.theme-royal .cert-sig-title { color: #c4b5fd; }
.theme-royal .cert-sig-img { color: #c084fc; }
.theme-royal .cert-qr-label { color: #c4b5fd; }

.theme-emerald .cert-bar-top,.theme-emerald .cert-bar-bottom { background: linear-gradient(90deg,#059669,#10b981,#059669); }
.theme-emerald .cert-frame-inner { border-color: rgba(16,185,129,0.35); }
.theme-emerald .cert-frame-corner { color: #10b981; }
.theme-emerald .cert-watermark { color: #059669; }
.theme-emerald .cert-logo-text { color: #d1fae5; }
.theme-emerald .cert-logo-dot { color: #10b981; }
.theme-emerald .cert-logo-icon { background: rgba(16,185,129,0.2); color: #34d399; }
.theme-emerald .cert-id-badge { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.theme-emerald .cert-main-title { color: #ecfdf5; }
.theme-emerald .cert-sub-title { color: #34d399; }
.theme-emerald .cert-ribbon { background: rgba(16,185,129,0.2); color: #d1fae5; border: 1px solid rgba(16,185,129,0.4); }
.theme-emerald .cert-name { color: #ecfdf5; }
.theme-emerald .cert-program-name { color: #34d399; }
.theme-emerald .cert-score-badge { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.theme-emerald .cert-date-ribbon { background: rgba(16,185,129,0.15); color: #d1fae5; border: 1px solid rgba(16,185,129,0.3); }
.theme-emerald .cert-desc { color: #a7f3d0; }
.theme-emerald .cert-photo-wrap { border-color: #10b981; color: #34d399; background: rgba(16,185,129,0.1); }
.theme-emerald .cert-seal { border-color: #f59e0b; }
.theme-emerald .cert-seal-inner { background: rgba(245,158,11,0.1); border-color: #d97706; }
.theme-emerald .cert-seal-icon { color: #fbbf24; }
.theme-emerald .cert-seal-text { color: #fbbf24; }
.theme-emerald .cert-sig-line { background: rgba(16,185,129,0.4); }
.theme-emerald .cert-sig-name { color: #d1fae5; }
.theme-emerald .cert-sig-title { color: #a7f3d0; }
.theme-emerald .cert-sig-img { color: #34d399; }
.theme-emerald .cert-qr-label { color: #a7f3d0; }

.theme-gold .cert-bar-top,.theme-gold .cert-bar-bottom { background: linear-gradient(90deg,#92400e,#f59e0b,#92400e); }
.theme-gold .cert-frame-inner { border-color: rgba(245,158,11,0.4); }
.theme-gold .cert-frame-corner { color: #f59e0b; }
.theme-gold .cert-watermark { color: #92400e; }
.theme-gold .cert-logo-text { color: #fef3c7; }
.theme-gold .cert-logo-dot { color: #f59e0b; }
.theme-gold .cert-logo-icon { background: rgba(245,158,11,0.2); color: #fbbf24; }
.theme-gold .cert-id-badge { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.theme-gold .cert-main-title { color: #fef3c7; }
.theme-gold .cert-sub-title { color: #fbbf24; }
.theme-gold .cert-ribbon { background: rgba(245,158,11,0.2); color: #fef3c7; border: 1px solid rgba(245,158,11,0.4); }
.theme-gold .cert-name { color: #fef3c7; }
.theme-gold .cert-program-name { color: #fbbf24; }
.theme-gold .cert-score-badge { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.theme-gold .cert-date-ribbon { background: rgba(245,158,11,0.15); color: #fef3c7; border: 1px solid rgba(245,158,11,0.3); }
.theme-gold .cert-desc { color: #fde68a; }
.theme-gold .cert-photo-wrap { border-color: #f59e0b; color: #fbbf24; background: rgba(245,158,11,0.1); }
.theme-gold .cert-seal { border-color: #f59e0b; }
.theme-gold .cert-seal-inner { background: rgba(245,158,11,0.15); border-color: #d97706; }
.theme-gold .cert-seal-icon { color: #fbbf24; }
.theme-gold .cert-seal-text { color: #fbbf24; }
.theme-gold .cert-sig-line { background: rgba(245,158,11,0.4); }
.theme-gold .cert-sig-name { color: #fef3c7; }
.theme-gold .cert-sig-title { color: #fde68a; }
.theme-gold .cert-sig-img { color: #fbbf24; }
.theme-gold .cert-qr-label { color: #fde68a; }

/* ── SHARE MODAL ── */
.share-modal-overlay { position: fixed; inset: 0; background: rgba(7,9,15,0.85); backdrop-filter: blur(12px); z-index: 9999; display: none; align-items: center; justify-content: center; }
.share-modal-overlay.show { display: flex; }
.share-modal { background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: 24px; padding: 32px; max-width: 440px; width: 90%; animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes modalPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.share-modal-title { font-size: 1.1rem; font-weight: 800; color: var(--clr-on-surface); margin-bottom: 4px; }
.share-modal-desc  { font-size: 0.8rem; color: var(--clr-muted); margin-bottom: 20px; }
.share-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.share-btn-social { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--clr-white-hover); border: 1px solid var(--clr-border); border-radius: 14px; padding: 14px 8px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.share-btn-social:hover { background: var(--clr-grid-line); transform: translateY(-2px); }
.share-btn-social i { font-size: 1.4rem; }
.share-btn-social span { font-size: 0.7rem; font-weight: 600; color: var(--clr-white-soft); }
.share-link-box { background: var(--clr-white-hover); border: 1px solid var(--clr-border); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.share-link-text { font-size: 0.75rem; color: var(--clr-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.btn-copy-link { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); color: var(--clr-primary-2); border-radius: 8px; font-size: 0.75rem; font-weight: 700; padding: 6px 12px; cursor: pointer; transition: all 0.2s; font-family: 'Cairo',sans-serif; white-space: nowrap; }
.btn-copy-link:hover { background: rgba(99,102,241,0.25); color: #fff; }
.btn-close-modal { background: transparent; border: none; color: var(--clr-muted); font-size: 1.2rem; cursor: pointer; padding: 4px; transition: color 0.2s; }
.btn-close-modal:hover { color: var(--clr-on-surface); }

/* ── DOWNLOAD TOAST ── */
.download-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: 14px; padding: 14px 24px; display: none; align-items: center; gap: 12px; z-index: 9998; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.download-toast.show { display: flex; }
.toast-spinner { width: 20px; height: 20px; border: 2px solid rgba(99,102,241,0.2); border-top-color: var(--clr-primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-text { font-size: 0.82rem; font-weight: 600; color: var(--clr-white-soft); }

/* ── FOOTER ── */
.footer-dark { background: var(--clr-surface); border-top: 1px solid var(--clr-border); padding: 30px 0 20px; position: relative; z-index: 1; margin-top: 60px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--clr-muted); font-size: 0.78rem; margin: 0; }
.footer-links-inline a:hover { color: var(--clr-on-surface); }

/* ── RESPONSIVE ── */
.cert-scale-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.cert-scale-inner {
    flex-shrink: 0;
    transform-origin: top center;
}

/* ── LIGHT MODE OVERRIDES ── */
html[data-theme="light"] .action-bar { background: rgba(255,255,255,0.9); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html[data-theme="light"] .btn-print { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: #475569; }
html[data-theme="light"] .btn-print:hover { background: rgba(0,0,0,0.06); color: #1e293b; }
html[data-theme="light"] .btn-share:hover { color: var(--clr-accent); }
html[data-theme="light"] .btn-copy-link:hover { background: rgba(99,102,241,0.25); color: var(--clr-primary); }
html[data-theme="light"] .share-modal-overlay { background: rgba(255,255,255,0.85); }
html[data-theme="light"] .share-modal { box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
html[data-theme="light"] .share-btn-social:hover { background: rgba(0,0,0,0.04); }
html[data-theme="light"] .cert-shadow-wrap { filter: drop-shadow(0 30px 80px rgba(0,0,0,0.15)) drop-shadow(0 0 40px rgba(99,102,241,0.08)); }
html[data-theme="light"] .download-toast { box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
html[data-theme="light"] .blob-1 { background: rgba(99,102,241,0.04); }
html[data-theme="light"] .blob-2 { background: rgba(6,182,212,0.03); }

/* ── PRINT ── */
@media print {
    body > *:not(.cert-print-area) { display: none !important; }
    .cert-print-area { position: fixed !important; top: 0; left: 0; width: 100% !important; max-width: 100% !important; }
    .navbar-custom, .page-wrap > .container > .action-bar, .footer-dark, .download-toast, .share-modal-overlay, .demo-banner, .theme-selector-wrap { display: none !important; }
    .cert-shadow-wrap { filter: none !important; max-width: 100% !important; }
    #certificateCard { width: 100% !important; box-shadow: none !important; }
}
