/* ============================================================
   CertOrigin — Redesigned (Bright Theme)
   设计参考: Claude (暖色调编辑式) + Stripe (浅色金融级) + Linear (产品感)
   色调: 明亮暖白底 + 青绿主色 + 珊瑚点缀
   ============================================================ */

:root {
    /* 主色调 — 青绿 */
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #0d5f59;
    --accent: #06b6d4;

    /* 暖色点缀 — 参考 Claude 的珊瑚色 */
    --warm: #cc785c;
    --warm-light: #e8a07a;

    /* 明亮背景 — 参考 Claude 的奶油色 */
    --bg-canvas: #faf9f5;
    --bg-surface: #f5f0e8;
    --bg-card: #ffffff;
    --bg-soft: #fafaf7;

    /* 文字层级 — 深色文字配浅色底 */
    --text-primary: #141413;
    --text-secondary: #3d3d3a;
    --text-muted: #6c6a64;

    /* 语义色 */
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;

    /* 边框 */
    --border: #e6dfd8;
    --border-light: #ebe6df;

    /* 阴影 — 更轻柔 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.08);

    /* 圆角 */
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-full: 9999px;

    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-canvas);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Page Header — 紧凑不太空
   ============================================================ */

.page-header {
    min-height: auto;
    background: linear-gradient(170deg, var(--bg-canvas) 0%, var(--bg-surface) 50%, #e8f5f3 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(204, 120, 92, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
    background: transparent !important;
    box-shadow: none !important;
    padding: 16px 0;
    z-index: 1050;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary) !important;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 24px;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px !important;
    transition: all 0.2s;
    border-radius: var(--radius-xs);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.04);
}

/* ============================================================
   Card — 明亮白色
   ============================================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d4f4a 100%);
    border: none;
    padding: var(--space-xl) var(--space-xl);
}

.card-header-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0d4f4a 100%);
}

.card-title {
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.3px;
}

.card-body {
    padding: var(--space-2xl) var(--space-xl);
}

/* ============================================================
   Typography
   ============================================================ */

h2 {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 28px;
    margin: 0;
    letter-spacing: -0.3px;
}

h5 {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
    font-size: 17px;
    margin: 10px 0 15px;
}

h6 {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ============================================================
   Form
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-soft);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
    background: #fff;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236c6a64'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 70px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
    height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(15, 118, 110, 0.4);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, var(--accent) 0%, #22d3ee 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
    color: #fff;
}

.btn-round { border-radius: var(--radius-sm); }

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-outline-secondary {
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-light {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-light:hover {
    background: var(--bg-soft);
    color: var(--text-primary);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-secondary { background: #64748b; color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-xs); height: auto; }
.btn-lg { padding: 16px 36px; font-size: 16px; height: 52px; }

/* ============================================================
   Alert
   ============================================================ */

.alert {
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 18px;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid var(--danger);
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 3px solid var(--success);
}

/* ============================================================
   Table
   ============================================================ */

.table { font-size: 14px; }
.table th {
    background: var(--bg-surface);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border);
    padding: 14px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}
.table-hover tbody tr:hover { background: rgba(20, 184, 166, 0.04); }
.table code {
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: "JetBrains Mono", "Fira Code", monospace;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: var(--bg-canvas);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer .copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================
   Utility
   ============================================================ */

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
code {
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    color: var(--primary);
}

/* ============================================================
   Grid System
   ============================================================ */

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { flex: 1; padding: 0 15px; }
.col-lg-2 { flex: 0 0 16.66%; max-width: 16.66%; padding: 0 15px; }
.col-lg-4 { flex: 0 0 33.33%; max-width: 33.33%; padding: 0 15px; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-lg-8 { flex: 0 0 66.66%; max-width: 66.66%; padding: 0 15px; }
.col-lg-10 { flex: 0 0 83.33%; max-width: 83.33%; padding: 0 15px; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-xl-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-xl-8 { flex: 0 0 66.66%; max-width: 66.66%; padding: 0 15px; }
.col-xl-9 { flex: 0 0 75%; max-width: 75%; padding: 0 15px; }
.col-xl-10 { flex: 0 0 83.33%; max-width: 83.33%; padding: 0 15px; }
.col-xl-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.col-md-4 { flex: 0 0 33.33%; max-width: 33.33%; padding: 0 15px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-md-8 { flex: 0 0 66.66%; max-width: 66.66%; padding: 0 15px; }
.col-md-10 { flex: 0 0 83.33%; max-width: 83.33%; padding: 0 15px; }
.col-sm-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.col-sm-4 { flex: 0 0 33.33%; max-width: 33.33%; padding: 0 15px; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-sm-8 { flex: 0 0 66.66%; max-width: 66.66%; padding: 0 15px; }

.offset-lg-2 { margin-left: 16.66%; }
.justify-content-center { justify-content: center; }

/* ============================================================
   BMD Form
   ============================================================ */

.bmd-form-group {
    position: relative;
    padding-top: 10px;
    margin-bottom: 24px;
}

.bmd-label-static {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.bmd-form-group .form-control {
    border: none;
    border-bottom: 1.5px solid var(--border);
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
    font-size: 16px;
}

.bmd-form-group .form-control:focus {
    border-bottom-color: var(--primary-light);
    box-shadow: none;
}

/* ============================================================
   Form Section (Admin)
   ============================================================ */

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
}

.form-section h5 {
    margin-bottom: 1.2rem;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 15px;
}

.item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.item-row input { flex: 1; }
.item-row .btn-remove { flex: 0 0 auto; }


/* ============================================================
   ====== VERIFY PAGE ======
   ============================================================ */

.verify-page-inner {
    padding-top: 60px;
    padding-bottom: 60px;
}

.verify-brand {
    text-align: center;
    margin-bottom: 36px;
}

.verify-brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(15, 118, 110, 0.25);
}

.verify-brand-icon i {
    font-size: 28px;
    color: #fff;
}

.verify-brand-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.verify-brand-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* 验证卡片 */
.verify-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    max-width: 880px;
    margin: 0 auto;
}

.verify-card-body {
    padding: 56px 64px;
}

.verify-error {
    text-align: center;
    margin-bottom: 28px;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
}

.verify-error i {
    color: var(--danger);
    margin-bottom: 10px;
}

.verify-error h5 {
    color: var(--danger);
    font-weight: 600;
    margin: 0 0 4px;
}

.verify-searched {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.verify-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.verify-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.verify-input-group .bmd-form-group {
    flex: 1;
    margin-bottom: 0;
}

.verify-input-group .btn {
    flex-shrink: 0;
}

.verify-footer {
    text-align: center;
    margin-top: 24px;
}

.verify-footer p {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.verify-footer i {
    color: var(--success);
    font-size: 12px;
}


/* ============================================================
   ====== CERTIFICATE PAGE ======
   ============================================================ */

.cert-page-inner {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* 验证状态 Banner */
.verify-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
}

.verify-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.verify-icon i {
    font-size: 22px;
    color: #fff;
}

.verify-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.verify-text p {
    color: var(--text-muted);
    margin: 0;
    font-size: 13px;
}

/* 证书卡片 */
.cert-card {
    margin-bottom: 28px;
}

.cert-card .card-body {
    padding: var(--space-2xl) var(--space-xl);
}

.cert-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-number-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    letter-spacing: 0.5px;
}

/* 证书分区 */
.cert-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.cert-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cert-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-section-title i {
    font-size: 16px;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 参与方卡片 */
.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.party-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all 0.3s;
}

.party-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

.party-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.party-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.party-address {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 货物表格 */
.cert-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.cert-table thead th {
    background: var(--bg-surface);
    font-weight: 700;
    color: var(--primary);
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1.5px solid var(--primary);
}

.cert-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.cert-table tbody tr:hover td {
    background: rgba(20, 184, 166, 0.03);
}

/* 签名区 */
.signature-block {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.signature-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 底部操作区 */
.cert-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qr-section {
    text-align: center;
    flex-shrink: 0;
}

.qr-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-image {
    width: 100px;
    height: 100px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    background: #fff;
}


/* ============================================================
   ====== PDF VIEWER PAGE ======
   ============================================================ */

.pdf-page-inner {
    padding-top: 30px;
    padding-bottom: 40px;
}

.pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.pdf-toolbar-left { flex: 1; }

.pdf-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-title i {
    color: var(--danger);
    font-size: 22px;
}

.pdf-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 0 32px;
}

.pdf-toolbar-right {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pdf-viewer-container {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow-lg);
}

.pdf-iframe {
    width: 100%;
    height: 82vh;
    border: none;
    border-radius: var(--radius-xs);
    display: block;
    background: #fff;
}

.pdf-footer {
    text-align: center;
    margin-top: 16px;
}

.pdf-footer p {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pdf-footer i {
    color: var(--success);
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .verify-card-body { padding: 32px 24px; }
    .cert-card .card-body { padding: 24px 20px; }
    .card-header { padding: 24px 20px; }
    h2 { font-size: 24px; }
    .btn-lg { padding: 14px 28px; font-size: 14px; height: 48px; }
    .cert-actions { flex-direction: column; text-align: center; }
    .action-buttons { justify-content: center; }
    .verify-input-group { flex-direction: column; align-items: stretch; }
    .pdf-toolbar { flex-direction: column; align-items: flex-start; }
    .parties-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}
