/* ============================================
   GZ File Opener - gz-opener.css
   Prefix: bzo- (gz opener)
   Light mode default, dark mode via [data-theme="dark"]
   Green theme - compression/archive category
   ============================================ */

/* CSS Variables - Light Mode (Default) */
:root {
    --bzo-transition: 0.25s;

    /* Primary - green (compression/archive tools) */
    --bzo-primary: #339966;
    --bzo-primary-light: #d1fae5;
    --bzo-primary-dark: #2d7a52;

    /* Secondary functional colors */
    --bzo-success: #339966;
    --bzo-success-light: #d1fae5;
    --bzo-warning: #d97706;
    --bzo-warning-light: #fef3c7;
    --bzo-danger: #b91c1c;
    --bzo-danger-light: #fee2e2;
    --bzo-info: #2563eb;
    --bzo-info-light: #dbeafe;

    /* Surfaces */
    --bzo-bg: #f7fbf9;
    --bzo-bg-elevated: #ffffff;
    --bzo-bg-secondary: #f0f9f4;
    --bzo-bg-tertiary: #e0f2e8;
    --bzo-bg-canvas: #fafafa;

    /* Text */
    --bzo-text: #1f2937;
    --bzo-text-secondary: #374151;
    --bzo-text-muted: #6b7280;

    /* Borders & shadows */
    --bzo-border: #e5e7eb;
    --bzo-border-strong: #d1d5db;
    --bzo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --bzo-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.06);
    --bzo-shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bzo-primary: #4ade80;
    --bzo-primary-light: rgba(74, 222, 128, 0.15);
    --bzo-primary-dark: #22c55e;

    --bzo-success: #4ade80;
    --bzo-success-light: rgba(74, 222, 128, 0.15);
    --bzo-warning: #fbbf24;
    --bzo-warning-light: rgba(251, 191, 36, 0.15);
    --bzo-danger: #f87171;
    --bzo-danger-light: rgba(248, 113, 113, 0.15);
    --bzo-info: #60a5fa;
    --bzo-info-light: rgba(96, 165, 250, 0.15);

    --bzo-bg: #0f1419;
    --bzo-bg-elevated: #1a2129;
    --bzo-bg-secondary: #232b35;
    --bzo-bg-tertiary: #2d3744;
    --bzo-bg-canvas: #0a0d12;

    --bzo-text: #e5e7eb;
    --bzo-text-secondary: #cbd5e1;
    --bzo-text-muted: #94a3b8;

    --bzo-border: #2d3744;
    --bzo-border-strong: #3d4a5c;
    --bzo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --bzo-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4);
    --bzo-shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Global overrides for this tool
   ============================================ */
.tool-main {
    overflow: visible !important;
    /* Defensive: make tool-main background blend with the upload area below */
    background: var(--bzo-bg-elevated) !important;
    border: 1px solid var(--bzo-border) !important;
    padding: 0 !important;
}
.tool-container {
    max-width: 1000px;
}
.tool-description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Neutralize the global .upload-area::before gradient overlay
   (custom_styles.css adds it; we don't want it competing with the dashed border) */
.bzo-upload-area::before,
.bzo-upload-area::after {
    display: none !important;
    content: none !important;
}

/* ============================================
   Tool header
   ============================================ */
.bzo-tool-header {
    text-align: center;
    margin-bottom: 24px;
}
.bzo-title-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.bzo-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bzo-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bzo-icon-wrapper i,
.bzo-icon-wrapper svg {
    width: 24px;
    height: 24px;
}
.bzo-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bzo-primary);
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   Upload area - integrates with .tool-main card
   No nested rounded corners, no double borders
   ============================================ */
.bzo-upload-section {
    padding: 24px;
}
.bzo-upload-area {
    background: var(--bzo-bg-secondary);
    border: 2px dashed var(--bzo-border-strong);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--bzo-transition), background var(--bzo-transition), box-shadow var(--bzo-transition);
    position: relative;
    overflow: hidden; /* clip any rogue pseudo-elements from global styles */
    outline: none;    /* kill default browser focus outline that ignores border-radius */
}
.bzo-upload-area:hover {
    border-color: var(--bzo-primary);
    background: var(--bzo-primary-light);
}
.bzo-upload-area:focus-visible {
    border-color: var(--bzo-primary);
    border-style: solid;
    box-shadow: 0 0 0 4px var(--bzo-primary-light);
}
.bzo-upload-area.dragover {
    border-color: var(--bzo-primary);
    border-style: solid;
    background: var(--bzo-primary-light);
    box-shadow: 0 0 0 4px var(--bzo-primary-light), var(--bzo-shadow-md);
}
.bzo-upload-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--bzo-primary-light);
    color: var(--bzo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bzo-upload-icon i,
.bzo-upload-icon svg {
    width: 44px;
    height: 44px;
}
.bzo-upload-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--bzo-text);
    margin: 0 0 6px;
}
.bzo-upload-subtitle {
    color: var(--bzo-text-muted);
    margin: 0 0 16px;
    font-size: 14px;
}
.bzo-file-types {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.bzo-type-badge {
    background: var(--bzo-bg-tertiary);
    color: var(--bzo-text-secondary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
}
.bzo-upload-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bzo-text-muted);
    font-size: 12px;
}
.bzo-upload-hint i,
.bzo-upload-hint svg {
    width: 14px;
    height: 14px;
    color: var(--bzo-success);
}

/* ============================================
   Viewer header / archive info
   ============================================ */
.bzo-viewer-section {
    padding: 24px;
}
.bzo-archive-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bzo-border);
}
.bzo-archive-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.bzo-archive-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bzo-primary-light);
    color: var(--bzo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bzo-archive-meta {
    flex: 1;
    min-width: 0;
}
.bzo-archive-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--bzo-text);
    margin: 0 0 4px;
    word-break: break-all;
}
.bzo-archive-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    color: var(--bzo-text-muted);
    font-size: 13px;
}
.bzo-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bzo-stat i,
.bzo-stat svg {
    width: 14px;
    height: 14px;
}
.bzo-archive-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================
   Buttons (scoped + !important to beat custom_styles.css)
   ============================================ */
.bzo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 9px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all var(--bzo-transition) !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
}
.bzo-btn-primary {
    background: var(--bzo-primary) !important;
    color: #fff !important;
}
.bzo-btn-primary:hover {
    background: var(--bzo-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--bzo-shadow-md);
}
.bzo-btn-success {
    background: var(--bzo-success) !important;
    color: #fff !important;
}
.bzo-btn-success:hover {
    background: var(--bzo-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--bzo-shadow-md);
}
.bzo-btn-secondary {
    background: var(--bzo-bg-elevated) !important;
    color: var(--bzo-text-secondary) !important;
    border-color: var(--bzo-border-strong) !important;
}
.bzo-btn-secondary:hover {
    background: var(--bzo-bg-secondary) !important;
    border-color: var(--bzo-primary) !important;
    color: var(--bzo-primary) !important;
}
.bzo-btn-ghost {
    background: transparent !important;
    color: var(--bzo-text-secondary) !important;
    border-color: transparent !important;
    padding: 6px 10px !important;
}
.bzo-btn-ghost:hover {
    background: var(--bzo-bg-secondary) !important;
    color: var(--bzo-text) !important;
}
.bzo-btn i,
.bzo-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Content preview area
   ============================================ */
.bzo-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.bzo-search-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}
.bzo-search-wrapper i.bzo-search-icon,
.bzo-search-wrapper svg.bzo-search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--bzo-text-muted);
    pointer-events: none;
}
.bzo-search-input {
    width: 100%;
    padding: 9px 38px 9px 38px;
    border: 1px solid var(--bzo-border);
    border-radius: 8px;
    background: var(--bzo-bg-elevated);
    color: var(--bzo-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--bzo-transition);
}
.bzo-search-input:focus {
    outline: none;
    border-color: var(--bzo-primary);
}
.bzo-search-clear {
    position: absolute;
    right: 8px;
    background: transparent;
    border: 0;
    color: var(--bzo-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.bzo-search-clear:hover {
    color: var(--bzo-text);
    background: var(--bzo-bg-secondary);
}
.bzo-match-counter {
    color: var(--bzo-text-muted);
    font-size: 13px;
    white-space: nowrap;
    padding: 0 4px;
}

/* Content body */
.bzo-content-body {
    background: var(--bzo-bg-canvas);
    border: 1px solid var(--bzo-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.bzo-content-text {
    display: grid;
    grid-template-columns: auto 1fr;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: var(--bzo-text);
    max-height: 600px;
    overflow: auto;
}
.bzo-line-numbers {
    background: var(--bzo-bg-secondary);
    color: var(--bzo-text-muted);
    padding: 14px 12px;
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--bzo-border);
    white-space: pre;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}
.bzo-content-pre {
    margin: 0;
    padding: 14px 16px;
    white-space: pre;
    overflow-x: auto;
    min-width: 0;
}
.bzo-content-pre mark {
    background: #fde68a;
    color: #92400e;
    border-radius: 2px;
    padding: 0 2px;
}
[data-theme="dark"] .bzo-content-pre mark {
    background: rgba(251, 191, 36, 0.35);
    color: #fde68a;
}
.bzo-content-pre mark.bzo-current-match {
    background: #f59e0b;
    color: #fff;
}

/* Image preview */
.bzo-content-image {
    padding: 24px;
    text-align: center;
    background: var(--bzo-bg-canvas);
}
.bzo-content-image img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: var(--bzo-shadow-md);
}

/* Hex preview */
.bzo-content-hex {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--bzo-text);
    padding: 14px 16px;
    max-height: 600px;
    overflow: auto;
    background: var(--bzo-bg-canvas);
}
.bzo-hex-row {
    display: grid;
    grid-template-columns: 90px 1fr 200px;
    gap: 16px;
    padding: 1px 0;
    white-space: pre;
}
.bzo-hex-addr {
    color: var(--bzo-text-muted);
}
.bzo-hex-bytes {
    color: var(--bzo-text);
}
.bzo-hex-ascii {
    color: var(--bzo-text-secondary);
}

/* Binary placeholder */
.bzo-content-binary {
    padding: 48px 24px;
    text-align: center;
    color: var(--bzo-text-muted);
}
.bzo-content-binary i,
.bzo-content-binary svg {
    width: 56px;
    height: 56px;
    color: var(--bzo-text-muted);
    margin-bottom: 12px;
}
.bzo-content-binary h3 {
    color: var(--bzo-text);
    margin: 0 0 6px;
    font-size: 18px;
}
.bzo-content-binary p {
    margin: 0 auto;
    max-width: 480px;
    font-size: 14px;
}

/* Load-more for huge files */
.bzo-load-more {
    padding: 14px;
    text-align: center;
    border-top: 1px solid var(--bzo-border);
    background: var(--bzo-bg-secondary);
}

/* ============================================
   Info banner (gzip header metadata)
   ============================================ */
.bzo-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bzo-info-light);
    border: 1px solid color-mix(in srgb, var(--bzo-info) 30%, transparent);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--bzo-text-secondary);
}
.bzo-info-banner i.bzo-info-icon,
.bzo-info-banner svg.bzo-info-icon {
    width: 16px;
    height: 16px;
    color: var(--bzo-info);
    margin-top: 1px;
    flex-shrink: 0;
}
.bzo-info-banner strong {
    color: var(--bzo-text);
}

/* ============================================
   TAR auto-detect banner - prominent CTA
   ============================================ */
.bzo-tar-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bzo-primary-light);
    border: 1px solid var(--bzo-primary);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.bzo-tar-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bzo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bzo-tar-banner-icon i,
.bzo-tar-banner-icon svg {
    width: 24px;
    height: 24px;
}
.bzo-tar-banner-body {
    flex: 1;
    min-width: 200px;
}
.bzo-tar-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bzo-text);
    margin: 0 0 4px;
}
.bzo-tar-banner-text {
    font-size: 13px;
    color: var(--bzo-text-secondary);
    margin: 0;
    line-height: 1.5;
}
.bzo-tar-banner-text strong {
    color: var(--bzo-text);
}
.bzo-tar-banner #tarEntryCount {
    color: var(--bzo-primary-dark);
    font-weight: 600;
}
[data-theme="dark"] .bzo-tar-banner #tarEntryCount {
    color: var(--bzo-primary);
}
.bzo-tar-banner .bzo-btn-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ============================================
   Processing overlay - 4-stage
   ============================================ */
.bzo-processing {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.bzo-processing-card {
    background: var(--bzo-bg-elevated);
    border: 1px solid var(--bzo-border);
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 340px;
    max-width: 460px;
    box-shadow: var(--bzo-shadow-lg);
    color: var(--bzo-text);
}
.bzo-processing-stages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.bzo-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.bzo-stage-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bzo-bg-tertiary);
    color: var(--bzo-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--bzo-transition);
}
.bzo-stage-dot i,
.bzo-stage-dot svg {
    width: 16px;
    height: 16px;
}
.bzo-stage.active .bzo-stage-dot {
    background: var(--bzo-primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--bzo-primary-light);
}
.bzo-stage.done .bzo-stage-dot {
    background: var(--bzo-success);
    color: #fff;
}
.bzo-stage-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bzo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bzo-stage.active .bzo-stage-label {
    color: var(--bzo-primary);
}
.bzo-stage.done .bzo-stage-label {
    color: var(--bzo-success);
}
.bzo-stage-connector {
    flex: 1 1 auto;
    height: 2px;
    background: var(--bzo-bg-tertiary);
    margin: 0 4px;
    margin-bottom: 22px;
    border-radius: 1px;
}
.bzo-stage-connector.done {
    background: var(--bzo-success);
}
.bzo-progress-bar {
    height: 8px;
    background: var(--bzo-bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.bzo-progress-fill {
    height: 100%;
    background: var(--bzo-primary);
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 0%;
}
.bzo-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.bzo-progress-status {
    color: var(--bzo-text-secondary);
    font-size: 13px;
    flex: 1;
    min-width: 0;
}
.bzo-progress-pct {
    font-weight: 700;
    color: var(--bzo-text);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   Error / toast
   ============================================ */
.bzo-error {
    background: var(--bzo-danger-light);
    border: 1px solid color-mix(in srgb, var(--bzo-danger) 30%, transparent);
    color: var(--bzo-text);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}
.bzo-error i.bzo-error-icon,
.bzo-error svg.bzo-error-icon {
    width: 18px;
    height: 18px;
    color: var(--bzo-danger);
    flex-shrink: 0;
    margin-top: 1px;
}
.bzo-error a {
    color: var(--bzo-primary);
    text-decoration: underline;
}
.bzo-error-close {
    background: transparent;
    border: 0;
    color: var(--bzo-text-muted);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    border-radius: 4px;
}
.bzo-error-close:hover {
    color: var(--bzo-text);
    background: rgba(0, 0, 0, 0.05);
}

.bzo-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bzo-bg-elevated);
    color: var(--bzo-text);
    border: 1px solid var(--bzo-border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--bzo-shadow-lg);
    z-index: 9100;
    font-size: 14px;
    min-width: 240px;
    max-width: 90vw;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
}
.bzo-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.bzo-toast.success i.bzo-toast-icon,
.bzo-toast.success svg.bzo-toast-icon { color: var(--bzo-success); }
.bzo-toast.error i.bzo-toast-icon,
.bzo-toast.error svg.bzo-toast-icon { color: var(--bzo-danger); }
.bzo-toast i.bzo-toast-icon,
.bzo-toast svg.bzo-toast-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   Related tools (horizontal pills)
   ============================================ */
.bzo-related-box {
    background: var(--bzo-bg-elevated);
    border: 1px solid var(--bzo-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bzo-related-label {
    color: var(--bzo-text-muted);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.bzo-related-label i,
.bzo-related-label svg {
    width: 16px;
    height: 16px;
}
.bzo-related-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bzo-bg-secondary);
    color: var(--bzo-text-secondary);
    border: 1px solid var(--bzo-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--bzo-transition);
}
.bzo-related-pill:hover {
    background: var(--bzo-primary-light);
    color: var(--bzo-primary);
    border-color: var(--bzo-primary);
}
.bzo-related-pill i,
.bzo-related-pill svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Info cards
   ============================================ */
.bzo-info-card {
    background: var(--bzo-bg-elevated);
    border: 1px solid var(--bzo-border);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 18px;
    color: var(--bzo-text);
}
.bzo-info-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bzo-text);
}
.bzo-info-card h2 i,
.bzo-info-card h2 svg {
    width: 22px;
    height: 22px;
    color: var(--bzo-primary);
}
.bzo-info-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 6px;
    color: var(--bzo-text);
}
.bzo-info-card p {
    color: var(--bzo-text-secondary);
    line-height: 1.65;
    margin: 0 0 10px;
}
.bzo-info-card a {
    color: var(--bzo-primary);
    text-decoration: none;
    font-weight: 500;
}
.bzo-info-card a:hover {
    text-decoration: underline;
}
.bzo-info-card ol,
.bzo-info-card ul {
    color: var(--bzo-text-secondary);
    line-height: 1.7;
    padding-left: 22px;
    margin: 0 0 10px;
}
.bzo-info-card li {
    margin-bottom: 6px;
}

/* Features grid - inside info-card, no per-card shadows */
.bzo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.bzo-feature {
    background: var(--bzo-bg-secondary);
    border: 1px solid var(--bzo-border);
    border-radius: 10px;
    padding: 16px;
    min-width: 0;
}
.bzo-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bzo-primary-light);
    color: var(--bzo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.bzo-feature-icon i,
.bzo-feature-icon svg {
    width: 18px;
    height: 18px;
}
.bzo-feature h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--bzo-text);
}
.bzo-feature p {
    font-size: 13px;
    color: var(--bzo-text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* Steps */
.bzo-steps {
    display: grid;
    gap: 14px;
}
.bzo-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.bzo-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bzo-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.bzo-step-content h3 {
    margin: 0 0 4px;
}
.bzo-step-content p {
    margin: 0;
}

/* FAQ - uses .faq-item.open per global _footer.php handler */
.faq-item {
    border: 1px solid var(--bzo-border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--bzo-bg-secondary);
}
.faq-question {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 14px 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--bzo-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: inherit;
}
.faq-question:hover {
    background: var(--bzo-bg-tertiary);
}
.faq-question i,
.faq-question svg {
    width: 18px;
    height: 18px;
    color: var(--bzo-text-muted);
    transition: transform var(--bzo-transition);
    flex-shrink: 0;
}
.faq-item.open .faq-question i,
.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: var(--bzo-primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--bzo-transition) ease, padding var(--bzo-transition) ease;
    padding: 0 16px;
}
.faq-item.open .faq-answer {
    max-height: 800px;
    padding: 0 16px 14px;
}
.faq-answer p {
    margin: 0;
    color: var(--bzo-text-secondary);
    line-height: 1.65;
}
.faq-answer a {
    color: var(--bzo-primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .bzo-title { font-size: 22px; }
    .bzo-archive-header { flex-direction: column; }
    .bzo-archive-actions { width: 100%; }
    .bzo-archive-actions .bzo-btn { flex: 1; }
    .bzo-upload-area { padding: 32px 16px; }
    .bzo-upload-icon { width: 72px; height: 72px; }
    .bzo-processing-card { min-width: 0; width: 100%; }
    .bzo-stage-label { display: none; }
    .bzo-content-text { font-size: 12px; }
    .bzo-hex-row { grid-template-columns: 70px 1fr; }
    .bzo-hex-ascii { display: none; }
    .bzo-related-box { flex-direction: column; align-items: flex-start; }
    .bzo-tar-banner { flex-direction: column; align-items: flex-start; text-align: left; }
    .bzo-tar-banner .bzo-btn { width: 100%; }
}
@media (max-width: 480px) {
    .bzo-preview-toolbar .bzo-btn span { display: none; }
    .bzo-archive-actions .bzo-btn span { display: none; }
}
