/* ========================================================
   Proof Integrity – Custom Styles (Bootstrap 5 companion)
   ======================================================== */

/* --- Common / Base ------------------------------------ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

a.back-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.875rem;
}
a.back-link:hover {
    text-decoration: underline;
}

.text-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}
.text-link:hover {
    text-decoration: underline;
}

.text-muted-custom {
    font-size: 0.875rem;
    color: #64748b;
}

.empty {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
    font-size: 0.875rem;
}

/* --- Auth pages (login / register) -------------------- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}
.auth-link a {
    color: #4f46e5;
    text-decoration: none;
}

/* Password strength bar */
.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    margin-top: 0.5rem;
    overflow: hidden;
}
.strength-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.strength-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #64748b;
}
.rules {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 0;
    font-size: 0.75rem;
}
.rules li {
    padding: 0.125rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    transition: color 0.2s;
}
.rules li.pass {
    color: #16a34a;
}
.rules li .icon {
    width: 14px;
    text-align: center;
}

/* --- Language toggle ---------------------------------- */
.lang-toggle {
    font-size: 0.8125rem;
    display: inline-flex;
    gap: 0.375rem;
    align-items: center;
}
.lang-toggle a {
    color: #94a3b8;
    text-decoration: none;
    padding: 0.125rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.lang-toggle a:hover {
    color: #e2e8f0;
}
.lang-toggle a.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.lang-toggle-sep {
    color: rgba(148,163,184,0.5);
}

/* --- Navbar ------------------------------------------- */
.navbar-brand-text {
    font-size: 1.125rem;
    font-weight: 700;
}
.dashboard-navbar {
    background: #0F172A;
    border-bottom: 1px solid rgba(79, 70, 229, 0.15);
}
.dashboard-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    background: linear-gradient(
        90deg,
        #cbd5e1 0%,
        #e2e8f0 30%,
        #94a3b8 50%,
        #e2e8f0 70%,
        #cbd5e1 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hologram 4s ease-in-out infinite;
}
.navbar-user {
    font-size: 0.875rem;
}

/* --- Dashboard ---------------------------------------- */
.notice {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.notice.notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}
.notice.notice-error {
    background: #fee2e2;
    color: #dc2626;
}
.notice.notice-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #22c55e;
}
.notice code {
    word-break: break-all;
}

/* Key display (monospace green-on-dark) */
.key-display {
    font-family: monospace;
    background: #1e293b;
    color: #22c55e;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: block;
    margin-top: 0.5rem;
    word-break: break-all;
    font-size: 0.8125rem;
}
.key-display-sm {
    font-size: 0.6875rem;
}

/* Drop zone */
#dropZone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: border-color 0.2s, background 0.2s;
}
#dropZone.drop-zone-active {
    border-color: #4f46e5;
    background: #eff6ff;
}
#dropText {
    color: #64748b;
    font-size: 0.875rem;
}
#fileName {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Key cell (monospace truncated key) */
.key-cell {
    font-family: monospace;
    font-size: 0.75rem;
    color: #64748b;
}

/* Hash cell */
.hash-cell {
    font-family: monospace;
    font-size: 0.75rem;
}
.hash-cell a {
    color: #4f46e5;
    text-decoration: none;
}
.hash-cell a:hover {
    text-decoration: underline;
}

/* Custom badges (beyond Bootstrap) */
.badge-tier {
    background: #e0e7ff;
    color: #4338ca;
}
.badge-active {
    background: #dcfce7;
    color: #16a34a;
}
.badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}
.badge-partial {
    background: #fef3c7;
    color: #92400e;
}
.badge-verified {
    background: #dcfce7;
    color: #16a34a;
}
.badge-failed {
    background: #fee2e2;
    color: #dc2626;
}
.badge-found {
    background: #dbeafe;
    color: #1d4ed8;
}
.badge-method {
    background: #f3f4f6;
    color: #374151;
}

/* Actions column */
.actions {
    display: flex;
    gap: 0.25rem;
}
.actions form {
    display: inline;
}

/* Key name in tables */
.key-name {
    font-size: 0.75rem;
    color: #64748b;
}

/* --- Key Detail --------------------------------------- */
.detail-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
}
.detail-label {
    color: #64748b;
    font-weight: 600;
}
.detail-value {
    color: #1e293b;
}
.key-mono {
    font-family: monospace;
    font-size: 0.8125rem;
    word-break: break-all;
}

/* Usage bars */
.usage-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.usage-item {
    font-size: 0.8125rem;
}
.usage-item .label {
    color: #64748b;
}
.usage-item .value {
    font-weight: 600;
    color: #1e293b;
}
.usage-item .limit {
    color: #94a3b8;
}
.usage-item {
    flex: 1 1 120px;
}
.usage-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 0.25rem;
    width: 100%;
    max-width: 200px;
}
.usage-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* --- Proof page --------------------------------------- */
.proof-navbar {
    background: linear-gradient(135deg, #0c1d3a 0%, #152a4e 50%, #1a3560 100%);
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
}
.proof-brand {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(
        90deg,
        #cbd5e1 0%,
        #e2e8f0 30%,
        #94a3b8 50%,
        #e2e8f0 70%,
        #cbd5e1 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hologram 4s ease-in-out infinite;
}
@keyframes hologram {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.status-banner {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.status-verified {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}
.status-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.status-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.field {
    margin-bottom: 1.25rem;
}
.field-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.field-value {
    font-size: 0.9375rem;
    color: #1e293b;
    word-break: break-all;
}
.field-mono {
    font-family: monospace;
    font-size: 0.8125rem;
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.cert-box {
    font-family: monospace;
    font-size: 0.6875rem;
    background: #1e293b;
    color: #22c55e;
    padding: 0.75rem;
    border-radius: 6px;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
}

.badge-green {
    background: #dcfce7;
    color: #16a34a;
}
.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}
.badge-gray {
    background: #f1f5f9;
    color: #64748b;
}
.badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.proof-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}
.proof-details > summary {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}
.proof-details > summary::-webkit-details-marker {
    display: none;
}
.proof-details > summary::before {
    content: "›";
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.15s ease;
    color: #94a3b8;
}
.proof-details[open] > summary::before {
    transform: rotate(90deg);
}
.proof-details > summary:hover {
    color: #1e293b;
}
.proof-details[open] > .field:first-of-type {
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}
.empty-state h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* --- Proof info (file-logs) --------------------------- */
.proof-info {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.proof-info code {
    font-family: monospace;
    font-size: 0.75rem;
    word-break: break-all;
}

/* --- Pagination (custom disabled state) --------------- */
.page-link.disabled-link {
    color: #94a3b8;
    pointer-events: none;
    border-color: #e5e7eb;
}

/* --- Stamp form description input --------------------- */
.stamp-description {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* --- Table font size override (smaller for data) ------ */
.table-sm-custom {
    font-size: 0.8125rem;
}

/* Container width variants */
.container-700 { max-width: 700px; }
.container-900 { max-width: 900px; }
.container-1000 { max-width: 1000px; }

/* Small text utility */
.text-xs {
    font-size: 0.75rem;
}
.text-sm-detail {
    font-size: 0.8125rem;
}

/* === Sidebar === */
.sidebar {
    width: 240px;
    min-height: calc(100vh - 56px);
    background: #1e293b;
    flex-shrink: 0;
}
.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.sidebar .nav-link:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.05);
}
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left-color: #4f46e5;
}
.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}
.dashboard-content {
    flex-grow: 1;
    padding: 1.5rem 2rem;
    max-width: calc(100% - 240px);
    min-width: 0;
    overflow-x: auto;
}
@media (max-width: 768px) {
    .dashboard-content { max-width: 100%; padding: 1rem; }
}
.sidebar-mobile-link {
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.sidebar-mobile-link:hover { color: #e2e8f0; background: rgba(255,255,255,0.05); }
.sidebar-mobile-link.active { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar-mobile-link i { width: 20px; margin-right: 0.5rem; }

/* === Landing Page === */

/* --- Landing Navbar --- */
.landing-navbar {
    background: #0F172A;
    border-bottom: 1px solid rgba(79, 70, 229, 0.15);
}
.landing-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #E2E8F0;
}
.landing-navbar .nav-link {
    color: #94A3B8;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.landing-navbar .nav-link:hover {
    color: #E2E8F0;
}

/* --- Hero Section --- */
.landing-hero {
    background: linear-gradient(135deg, #030712 0%, #0F172A 40%, #1a1145 100%);
    color: #E2E8F0;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}
.landing-hero-content {
    position: relative;
    z-index: 1;
}
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.landing-hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #E2E8F0 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-hero-subtitle {
    font-size: 1.125rem;
    color: #94A3B8;
    margin-bottom: 2rem;
    max-width: 480px;
}
.landing-trust-badges {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: #64748b;
}
.landing-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.landing-trust-badges i {
    color: #06B6D4;
}

/* --- Features Section (light) --- */
.landing-features {
    background: #fff;
    color: #1e293b;
}
.landing-features-subtitle {
    color: #64748b;
}
.landing-feature-card {
    padding: 2rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
    border-color: #4F46E5;
}
.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.landing-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.75rem;
}
.landing-feature-card p {
    color: #64748b;
    font-size: 0.9375rem;
    margin: 0;
}
.privacy-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border: 1px solid #86efac;
}
.privacy-banner i {
    font-size: 1.75rem;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.privacy-banner strong {
    color: #0f172a;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}
.privacy-banner p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.landing-use-case {
    padding: 1rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}
.landing-use-case i {
    color: #4F46E5;
    display: block;
    margin-bottom: 0.375rem;
}

/* --- How It Works Section (dark) --- */
.landing-how {
    padding: 5rem 0;
    background: #0F172A;
    color: #E2E8F0;
}
.landing-how-title {
    font-size: 2rem;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 2rem;
}
.landing-how-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.landing-how-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.landing-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.landing-how-step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 0.25rem;
}
.landing-how-step p {
    color: #94A3B8;
    font-size: 0.8125rem;
    margin: 0;
}

/* Blockchain animation canvas */
.landing-blockchain-wrapper {
    width: 100%;
    height: 420px;
    position: relative;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.1);
}
.landing-blockchain-wrapper canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- CTA Section (indigo gradient) --- */
.landing-cta {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    padding: 4rem 0;
}
.landing-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.landing-cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* --- Footer (darkest) --- */
.landing-footer {
    background: #030712;
    color: #94A3B8;
    padding: 3rem 0 2rem;
    font-size: 0.875rem;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}
.landing-footer a {
    color: #cbd5e1;
    text-decoration: none;
}
.landing-footer a:hover {
    color: #E2E8F0;
}
.landing-footer-rule {
    border-color: rgba(255, 255, 255, 0.1);
}
.footer-credit {
    margin-top: 0.375rem;
    color: #64748b;
    font-size: 0.75rem;
}
.footer-credit a {
    color: #94a3b8;
    text-decoration: underline;
    text-decoration-color: rgba(148, 163, 184, 0.3);
}
.footer-credit a:hover {
    color: #cbd5e1;
    text-decoration-color: #cbd5e1;
}

/* --- Marketing prompt toast --- */
.marketing-prompt {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    z-index: 1080;
    width: 340px;
    max-width: calc(100vw - 2rem);
    font-size: 0.875rem;
}
.marketing-prompt-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.marketing-prompt-body {
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.5;
}
.marketing-prompt-close {
    position: absolute;
    top: 0.375rem;
    right: 0.625rem;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.marketing-prompt-close:hover { color: #0f172a; }

/* --- Cookie banner --- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: #0F172A;
    color: #E2E8F0;
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 280px; }
.cookie-banner-text a { color: #a5b4fc; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 575.98px) {
    .cookie-banner { padding: 0.75rem; }
}

/* --- Legal document content --- */
.legal-content { color: #1e293b; line-height: 1.65; }
.legal-content h3 { font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #0f172a; }
.legal-content p { margin-bottom: 0.75rem; }
.legal-content strong { color: #0f172a; }

/* --- Scroll to top --- */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4F46E5;
    color: #fff;
    border: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    z-index: 1000;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    background: #4338ca;
}

/* --- Landing Responsive --- */
@media (max-width: 991.98px) {
    .landing-hero-title {
        font-size: 2.5rem;
    }
    .landing-blockchain-wrapper {
        height: 300px;
        margin-top: 2rem;
    }
}
@media (max-width: 575.98px) {
    .landing-hero-title {
        font-size: 2rem;
    }
    .landing-hero {
        padding: 3rem 0;
    }
    .landing-how {
        padding: 3rem 0;
    }
    .landing-cta {
        padding: 3rem 0;
    }
    .landing-blockchain-wrapper {
        height: 240px;
    }
    /* Stack two-column key/value grids on phones */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.125rem 0;
    }
    .detail-label {
        margin-top: 0.5rem;
    }
    .detail-value {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f1f5f9;
        word-break: break-word;
    }
    .detail-value:last-child {
        border-bottom: none;
    }
    /* Usage bar: one item per row on phones */
    .usage-item {
        flex: 1 1 100%;
    }
    .usage-progress {
        max-width: 100%;
    }
    /* Tighter dashboard padding */
    .dashboard-content {
        padding: 0.75rem;
    }
}

/* === Docs Page === */
.docs-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.docs-container h1 {
    margin-bottom: 0.5rem;
}
.docs-intro {
    color: #64748b;
    margin-bottom: 2rem;
}

/* === Docs Sidebar === */
.docs-sidebar {
    background: #0f172a;
    max-width: 260px;
}
.docs-sidebar .nav {
    padding-top: 0.5rem;
}
.docs-nav-section {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #64748b;
}
.docs-nav-link {
    display: flex !important;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem !important;
    color: #cbd5e1 !important;
    font-size: 0.875rem;
    border-left: 3px solid transparent !important;
    transition: background 0.15s, color 0.15s;
}
.docs-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04);
}
.docs-nav-link.active {
    color: #fff !important;
    background: rgba(79, 70, 229, 0.15);
    border-left-color: #6366f1 !important;
}
.docs-nav-link .docs-nav-label {
    flex-grow: 1;
}
.docs-nav-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.75rem 1.25rem;
}
.docs-nav-back {
    color: #94a3b8 !important;
    font-size: 0.8125rem !important;
}
.method-pill {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
}
.method-pill.method-post {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}
.method-pill.method-get {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* === Docs Overview === */
.docs-base-url {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.docs-base-url-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}
.docs-base-url-value {
    font-family: monospace;
    font-size: 0.9375rem;
    color: #1e293b;
    background: transparent;
    padding: 0;
}
.docs-section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.endpoint-tile {
    display: block;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.endpoint-tile:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.endpoint-tile-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}
.endpoint-tile-path {
    font-family: monospace;
    font-size: 0.8125rem;
    color: #475569;
    background: transparent;
    padding: 0;
}
.endpoint-tile-icon {
    font-size: 1.25rem;
    color: #6366f1;
}
.endpoint-tile-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.endpoint-tile-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* === Credits Page === */
.credits-page {
    padding: 3rem 0 4rem;
    min-height: calc(100vh - 56px);
}
.credits-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.credits-intro {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.credits-section {
    margin-bottom: 2.5rem;
}
.credits-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.credits-list > li {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.credits-list > li:last-child {
    border-bottom: none;
}
.credits-list a {
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.9375rem;
}
.credits-list a:hover {
    text-decoration: underline;
}
.credits-lic {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 4px;
    vertical-align: middle;
}
.credits-list p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0.375rem 0 0;
    line-height: 1.5;
}

.stamp-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #166534;
    line-height: 1.5;
}
.stamp-privacy-note i {
    color: #16a34a;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.endpoint-card {
    margin-bottom: 2rem;
}
.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.method-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.method-post {
    background: #dbeafe;
    color: #1d4ed8;
}
.method-get {
    background: #dcfce7;
    color: #16a34a;
}
.endpoint-path {
    font-family: monospace;
    font-size: 0.9375rem;
    color: #1e293b;
}
.endpoint-desc {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.docs-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.375rem;
    margin-top: 1rem;
}
pre[class*="language-"] {
    border-radius: 8px;
    font-size: 0.8125rem;
    overflow-x: auto;
    max-width: 100%;
}
.docs-container table,
.dashboard-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

/* === Contact Page === */
.contact-wrapper {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 2rem 1rem;
}
.contact-card {
    max-width: 550px;
    width: 100%;
}
.contact-email-info {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 1rem;
}
.contact-email-info a {
    color: #4f46e5;
    text-decoration: none;
}

/* === Three.js Canvas Styles === */
#proofCanvas {
    display: block;
    margin: 0 auto;
}
#blockchainCanvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* --- Redesigned Proof Page --------------------------- */
.proof-main {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    min-height: calc(100vh - 120px);
    padding: 2.5rem 1rem 4rem;
}

.proof-hero-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}
.proof-hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a 0%, #4f46e5 100%);
}
.proof-hero-card--pending::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}
.proof-hero-card--pending {
    background: #fffdf7;
}
.proof-hero-card--pending .proof-hero-title {
    color: #92400e;
}
.proof-hero-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.proof-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}
.proof-hero-subtitle {
    font-size: 1rem;
    color: #475569;
    word-break: break-all;
    margin: 0 0 0.75rem;
}
.proof-hero-body {
    color: #64748b;
    font-size: 0.9375rem;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

.proof-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.proof-badge i {
    font-size: 0.9375rem;
    line-height: 1;
}
.proof-badge-green {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}
.proof-badge-yellow {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}
.proof-badge-red {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.proof-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
}

.proof-meta {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}
.proof-meta .card-body {
    padding: 1.25rem 1.5rem;
}
.proof-field {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.proof-field:last-child {
    border-bottom: none;
}
.proof-field-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.proof-field-value {
    font-size: 0.9375rem;
    color: #0f172a;
    word-break: break-all;
}
.proof-field-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8125rem;
    color: #1e293b;
}

.proof-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.proof-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.proof-header-brand i {
    color: #16a34a;
    font-size: 1.125rem;
}
.proof-header-brand:hover {
    color: #4f46e5;
}

.proof-meta .proof-details {
    margin-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
}
.proof-meta .proof-details > summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
    padding: 0.25rem 0;
}
.proof-meta .proof-details > summary::-webkit-details-marker { display: none; }
.proof-meta .proof-details > summary::before {
    content: "›";
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 0.15s ease;
    color: #94a3b8;
}
.proof-meta .proof-details[open] > summary::before { transform: rotate(90deg); }
.proof-meta .proof-details > summary:hover { color: #0f172a; }
.proof-meta .proof-details[open] > .proof-field:first-of-type { margin-top: 0.5rem; }

.proof-footer {
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.proof-footer-brand {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}
.proof-footer-brand:hover {
    color: #0f172a;
}
.proof-footer-copy {
    color: #94a3b8;
}
.proof-footer-copy::before {
    content: "·";
    margin-right: 0.5rem;
    color: #cbd5e1;
}

.proof-empty {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 1rem;
}
.proof-empty .card-body {
    padding: 3rem 1.5rem;
}
.proof-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
}

@media (max-width: 575.98px) {
    .proof-main { padding: 1.5rem 0.75rem 3rem; }
    .proof-hero-card { padding: 2rem 1rem 1.5rem; }
    .proof-hero-title { font-size: 1.375rem; }
    .proof-actions .btn { flex: 1 1 45%; justify-content: center; }
}
.share-toggles { white-space: nowrap; }
