/* ==================== VERIFY PDF DIGITAL SIGNATURE STYLES ==================== */

/* Override body background for this page */
body {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%) !important;
    color: var(--text-primary);
}

.verify-signature-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-primary);
}

/* Status palette shared by the verdict banner, cards, and check rows */
:root {
    --vs-good: #2ecc71;
    --vs-good-soft: rgba(46, 204, 113, 0.12);
    --vs-warn: #f5a623;
    --vs-warn-soft: rgba(245, 166, 35, 0.12);
    --vs-bad: #ef4444;
    --vs-bad-soft: rgba(239, 68, 68, 0.12);
    --vs-info: #4a90e2;
    --vs-info-soft: rgba(74, 144, 226, 0.12);
}

/* ==================== HEADER ==================== */

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.header-section h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.header-section h1 i {
    color: #f79112;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0;
}

/* ==================== UPLOAD ==================== */

.upload-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    position: relative;
}

.drop-zone-pdf {
    border: 3px dashed var(--primary-light);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.drop-zone-pdf:hover {
    border-color: #f79112;
    background: rgba(247, 145, 18, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 145, 18, 0.3);
}

.drop-zone-pdf:focus-visible {
    outline: 2px solid #f79112;
    outline-offset: 3px;
}

.drop-zone-pdf.drag-over {
    border-color: #f79112;
    background: rgba(247, 145, 18, 0.15);
    transform: scale(1.02);
}

.drop-zone-pdf.loading {
    pointer-events: none;
    opacity: 0.75;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 3rem;
    color: #f79112;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.drop-zone-pdf .drop-zone-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: 600;
}

.drop-zone-pdf p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 10px 0 20px 0;
}

.supported-formats {
    margin-top: 15px;
}

.supported-formats small {
    color: #f79112;
    font-size: 0.9rem;
}

.supported-formats i {
    margin-right: 5px;
}

.upload-progress-container {
    width: 100%;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.upload-progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #f79112 100%);
    transition: width 0.3s ease;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.upload-progress-text {
    margin-top: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* ==================== BUTTONS ==================== */

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    text-align: center;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    background: #f79112;
    box-shadow: 0 6px 20px rgba(247, 145, 18, 0.6);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-light);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--primary-light);
    border-color: #f79112;
    transform: translateY(-2px);
}

/* ==================== RESULT ==================== */

.result-section {
    margin-top: 28px;
    animation: fadeIn 0.4s ease;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    flex-wrap: wrap;
    gap: 15px;
}

.result-header .preview-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.result-header .preview-title i {
    color: #f79112;
}

.result-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.result-overview {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 18px;
}

.doc-meta-card {
    flex: 1;
    min-width: 0;
    background: rgba(15, 20, 25, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
}

.doc-meta-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
    margin-bottom: 8px;
}

.doc-meta-title i {
    color: #f79112;
    flex-shrink: 0;
}

.doc-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 2px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.doc-meta-item {
    color: var(--text-secondary);
}

.doc-meta-sep {
    color: var(--text-muted);
    margin: 0 6px;
}

.result-stamp {
    flex: 0 0 auto;
    min-width: 168px;
    max-width: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 20, 25, 0.92);
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.result-stamp i {
    font-size: 1.35rem;
}

.result-stamp.stamp-good {
    border-color: rgba(46, 204, 113, 0.55);
    color: #7ddea8;
    background: rgba(46, 204, 113, 0.08);
}

.result-stamp.stamp-bad {
    border-color: rgba(239, 68, 68, 0.55);
    color: #f3a0a0;
    background: rgba(239, 68, 68, 0.08);
}

.result-stamp.stamp-warn {
    border-color: rgba(245, 166, 35, 0.55);
    color: #f0c57a;
    background: rgba(245, 166, 35, 0.08);
}

.result-stamp.stamp-none {
    border-color: rgba(74, 144, 226, 0.45);
    color: #9ec0ea;
    background: rgba(74, 144, 226, 0.08);
}

.result-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
}

.result-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 14px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.result-tab:hover {
    color: var(--text-primary);
}

.result-tab.active {
    color: #f79112;
    border-bottom-color: #f79112;
}

.result-tab-panel {
    display: none;
}

.result-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.verdict-banner {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.verdict-banner .verdict-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #ffffff;
    background: var(--primary-light);
}

.verdict-body h2 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.verdict-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 0.86rem;
}

.verdict-valid {
    border-color: rgba(46, 204, 113, 0.6);
    background: var(--vs-good-soft);
}

.verdict-valid .verdict-icon {
    background: var(--vs-good);
}

.verdict-warning {
    border-color: rgba(245, 166, 35, 0.6);
    background: var(--vs-warn-soft);
}

.verdict-warning .verdict-icon {
    background: var(--vs-warn);
}

.verdict-invalid {
    border-color: rgba(239, 68, 68, 0.6);
    background: var(--vs-bad-soft);
}

.verdict-invalid .verdict-icon {
    background: var(--vs-bad);
}

.verdict-none {
    border-color: rgba(74, 144, 226, 0.55);
    background: var(--vs-info-soft);
}

.verdict-none .verdict-icon {
    background: var(--vs-info);
}

/* Document meta (legacy grid removed; compact card above) */

/* ==================== SIGNATURE CARDS ==================== */

.signature-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 22px;
}

.sig-report-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    gap: 22px;
    align-items: start;
}

.sig-report-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sig-report-status-valid { color: #7ddea8; }
.sig-report-status-warning { color: #f0c57a; }
.sig-report-status-invalid { color: #f3a0a0; }

.sig-report-facts {
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
    gap: 8px 14px;
}

.sig-report-facts dt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.sig-report-facts dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.sig-report-cert {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sig-report-cert h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
}

.sig-appearance {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sig-appearance img {
    max-width: 100%;
    max-height: 180px;
    display: block;
    object-fit: contain;
}

.sig-appearance-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.86rem;
    text-align: center;
    padding: 18px 10px;
    width: 100%;
    background: #f3f4f6;
    border-radius: 8px;
}

.sig-appearance-empty i {
    font-size: 1.4rem;
    color: #9ca3af;
}

.sig-highlights {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sig-highlight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.sig-highlight i {
    margin-top: 2px;
    flex-shrink: 0;
}

.sig-highlight strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sig-highlight span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

.sig-highlight-pass { border-color: rgba(46, 204, 113, 0.28); }
.sig-highlight-pass i { color: var(--vs-good); }
.sig-highlight-fail { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); }
.sig-highlight-fail i { color: var(--vs-bad); }
.sig-highlight-warn { border-color: rgba(245, 166, 35, 0.32); }
.sig-highlight-warn i { color: var(--vs-warn); }
.sig-highlight-info { border-color: rgba(74, 144, 226, 0.3); }
.sig-highlight-info i { color: var(--vs-info); }

.sig-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
}

.sig-card.sig-valid,
.sig-card.sig-warning,
.sig-card.sig-invalid {
    border-color: rgba(255, 255, 255, 0.14);
}

.sig-card-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sig-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.sig-badge-valid {
    background: var(--vs-good-soft);
    color: var(--vs-good);
    border: 1px solid rgba(46, 204, 113, 0.45);
}

.sig-badge-warning {
    background: var(--vs-warn-soft);
    color: var(--vs-warn);
    border: 1px solid rgba(245, 166, 35, 0.45);
}

.sig-badge-invalid {
    background: var(--vs-bad-soft);
    color: var(--vs-bad);
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.sig-head-main {
    flex: 1 1 320px;
    min-width: 0;
}

.sig-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.sig-summary {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.97rem;
}

.sig-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sig-chip {
    background: rgba(15, 20, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
    min-width: 0;
}

.sig-chip-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.sig-chip-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* Check rows */

.sig-checks {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sig-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sig-check > i {
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 1rem;
}

.sig-check-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sig-check-body strong {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.sig-check-body span {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.sig-check-pass { border-color: rgba(46, 204, 113, 0.3); }
.sig-check-pass > i { color: var(--vs-good); }
.sig-check-fail { border-color: rgba(239, 68, 68, 0.35); background: var(--vs-bad-soft); }
.sig-check-fail > i { color: var(--vs-bad); }
.sig-check-warn { border-color: rgba(245, 166, 35, 0.32); background: var(--vs-warn-soft); }
.sig-check-warn > i { color: var(--vs-warn); }
.sig-check-info > i { color: var(--vs-info); }
.sig-check-skip > i { color: var(--text-muted); }

/* Expandable panels */

.sig-panels {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sig-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(15, 20, 25, 0.75);
    overflow: hidden;
}

.sig-panel-summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.96rem;
    transition: background 0.3s ease;
}

.sig-panel-summary::after {
    content: '+';
    margin-left: auto;
    color: #f79112;
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sig-panel.active > .sig-panel-summary {
    background: rgba(247, 145, 18, 0.12);
    border-bottom: 1px solid rgba(247, 145, 18, 0.35);
}

.sig-panel.active > .sig-panel-summary::after {
    content: '-';
    transform: rotate(180deg);
}

.sig-panel-summary:hover {
    background: rgba(247, 145, 18, 0.1);
}

.sig-panel-summary i {
    color: #f79112;
}

.sig-panel-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    padding: 0 16px;
}

.sig-panel.active > .sig-panel-body {
    max-height: 8000px;
    padding: 12px 16px 16px;
}

.sig-dl {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 8px 18px;
}

.sig-dl dt {
    color: var(--text-muted);
    font-size: 0.86rem;
    padding-top: 2px;
}

.sig-dl dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.sig-dd-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.82rem !important;
    color: var(--text-secondary) !important;
    letter-spacing: 0.02em;
}

/* Certificate chain */

.chain-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    counter-reset: chain;
}

.chain-item {
    border-left: 2px solid var(--primary-light);
    padding: 0 0 18px 18px;
    position: relative;
}

.chain-item:last-child {
    border-left-color: transparent;
    padding-bottom: 4px;
}

.chain-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f79112;
    box-shadow: 0 0 0 3px rgba(247, 145, 18, 0.2);
}

.chain-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.chain-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 3px 10px;
}

.chain-name {
    color: var(--text-primary);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.chain-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    border-radius: 50px;
    padding: 3px 10px;
}

.chain-flag-good {
    background: var(--vs-good-soft);
    color: var(--vs-good);
    border: 1px solid rgba(46, 204, 113, 0.4);
}

.chain-item .sig-dl {
    padding: 0;
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
}

.chain-note {
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.chain-note-warn {
    color: #fbbf24;
}

.sig-errors {
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sig-errors strong {
    display: block;
    margin-bottom: 6px;
    color: var(--vs-bad);
}

.sig-errors ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

/* ==================== TRUST PANEL ==================== */

.trust-panel {
    margin-top: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(15, 20, 25, 0.75);
    padding: 22px 24px;
}

.trust-panel .panel-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-panel .panel-title i {
    color: #f79112;
}

.trust-panel > p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
}

.trust-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item i {
    color: #f79112;
}

.trust-item-name {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.trust-remove {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.trust-remove:hover {
    color: var(--vs-bad);
    background: rgba(239, 68, 68, 0.12);
}

.trust-empty {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* ==================== MODAL ==================== */

.pdf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    backdrop-filter: blur(6px);
}

.pdf-modal {
    width: min(560px, 100%);
    background: rgba(15, 20, 25, 0.96);
    border: 2px solid var(--primary-light);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pdf-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pdf-modal-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pdf-modal-close:hover {
    color: #f79112;
    background: rgba(247, 145, 18, 0.12);
}

.pdf-modal-message {
    padding: 16px 18px 0 18px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.pdf-modal-actions {
    padding: 16px 18px 18px 18px;
    display: flex;
    justify-content: flex-end;
}

/* ==================== INSTRUCTIONS ==================== */

.instructions-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.instructions-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.instructions-section h2 i {
    color: #f79112;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 145, 18, 0.3);
    border-color: #f79112;
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f79112 0%, #ff6b35 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(247, 145, 18, 0.4);
}

.step-content h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ==================== FEATURES GUIDE ==================== */

.features-guide-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.features-guide-section h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
    flex-wrap: wrap;
}

.features-guide-section h2 i {
    color: #f79112;
}

.features-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 32px;
    text-align: center;
}

.feature-block {
    margin-bottom: 28px;
}

.feature-block h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-block h3 i {
    color: #f79112;
    flex-shrink: 0;
}

.feature-block p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 12px;
}

.feature-block ul {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 16px;
    padding-left: 24px;
}

.feature-block li {
    margin-bottom: 8px;
}

.feature-block a,
.features-outro a {
    color: #f79112;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(247, 145, 18, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.feature-block a:hover,
.features-outro a:hover {
    color: #ffad4a;
    border-bottom-color: rgba(255, 173, 74, 0.8);
}

.feature-block a:focus-visible,
.features-outro a:focus-visible {
    outline: 2px solid rgba(247, 145, 18, 0.85);
    outline-offset: 2px;
    border-bottom-color: transparent;
    border-radius: 2px;
}

.features-outro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 24px;
    margin-bottom: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==================== RELATED TOOLS ==================== */

.verify-signature-related-tools {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.verify-signature-related-tools h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
}

.verify-signature-related-tools h2 i {
    color: #f79112;
}

.verify-signature-related-tools > p {
    color: var(--text-secondary);
    margin: 0 0 22px;
    line-height: 1.55;
}

.verify-signature-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.verify-signature-related-card {
    display: block;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.verify-signature-related-card:hover {
    border-color: #f79112;
    background: rgba(247, 145, 18, 0.1);
    transform: translateY(-2px);
}

.verify-signature-related-card i {
    color: #f79112;
    margin-right: 8px;
}

.verify-signature-related-card strong {
    display: block;
    margin: 4px 0 6px;
    font-size: 1.02rem;
    color: var(--text-primary);
}

.verify-signature-related-card span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==================== FAQ ==================== */

.faq-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.faq-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.faq-section h2 i {
    color: #f79112;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item-pdf {
    margin-bottom: 15px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.faq-item-pdf:hover {
    border-color: #f79112;
}

.faq-question-pdf {
    padding: 15px 15px 15px 40px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.faq-question-pdf::before {
    content: '+';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #f79112;
}

.faq-item-pdf.active .faq-question-pdf {
    background-color: rgba(247, 145, 18, 0.2);
    color: var(--text-primary);
    border-bottom: 2px solid #f79112;
}

.faq-item-pdf.active .faq-question-pdf::before {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer-pdf {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.faq-item-pdf.active .faq-answer-pdf {
    padding: 15px;
    max-height: 1200px;
}

.faq-answer-pdf p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer-pdf a {
    color: #f79112;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(247, 145, 18, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-answer-pdf a:hover {
    color: #ffad4a;
    border-bottom-color: rgba(255, 173, 74, 0.8);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    .verify-signature-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-overview {
        flex-direction: column;
    }

    .result-stamp {
        max-width: none;
        min-width: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 14px;
        text-align: left;
    }

    .sig-report-top {
        grid-template-columns: 1fr;
    }

    .sig-dl,
    .chain-item .sig-dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px 0;
    }

    .sig-dl dt {
        margin-top: 10px;
    }

    .sig-dl dt:first-child {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .verify-signature-container {
        padding: 14px;
    }

    .upload-section,
    .instructions-section,
    .faq-section,
    .features-guide-section,
    .verify-signature-related-tools {
        padding: 20px;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .verdict-banner {
        flex-direction: row;
        gap: 10px;
        padding: 11px 12px;
    }

    .verdict-body h2 {
        font-size: 0.95rem;
    }

    .sig-card {
        padding: 18px 16px;
    }

    .sig-chip {
        width: 100%;
    }

    .result-actions .btn-secondary {
        width: 100%;
    }

    /* GPU acceleration for mobile - force hardware acceleration */
    .drop-zone-pdf,
    .sig-card,
    .verdict-banner {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Disable expensive backdrop-filter on mobile for performance */
    .upload-section,
    .instructions-section,
    .faq-section,
    .features-guide-section,
    .verify-signature-related-tools,
    .pdf-modal-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Adjust background since backdrop-filter is removed */
    .upload-section,
    .instructions-section,
    .faq-section,
    .features-guide-section,
    .verify-signature-related-tools {
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 1.6rem;
        gap: 10px;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .drop-zone-pdf .drop-zone-title {
        font-size: 1.25rem;
    }

    .btn-primary {
        font-size: 0.95rem;
        padding: 12px 24px;
    }

    .btn-secondary {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    .instructions-section h2,
    .faq-section h2,
    .features-guide-section h2,
    .verify-signature-related-tools h2 {
        font-size: 1.5rem;
        gap: 10px;
    }

    .verify-signature-related-grid {
        grid-template-columns: 1fr;
    }

    .faq-question-pdf {
        font-size: 1rem;
    }

    .faq-answer-pdf p {
        font-size: 1rem;
    }

    .sig-title {
        font-size: 1.05rem;
    }

    .result-tabs {
        gap: 4px;
    }

    .result-tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px 12px;
        font-size: 0.88rem;
    }

    .sig-report-facts {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .sig-report-facts dt {
        margin-top: 8px;
    }

    .sig-report-facts dt:first-child {
        margin-top: 0;
    }

    .step-item,
    .faq-item-pdf {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .btn-primary,
    .btn-secondary {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}
