 .result-box {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 1.2rem 1.5rem;
            margin: 0.5rem 0 1.2rem 0;
            border-left: 5px solid var(--primary-color, #0d6efd);
        }
        .result-box .label {
            font-weight: 600;
            color: #495057;
            min-width: 110px;
            display: inline-block;
        }
        .result-box .value {
            font-family: 'Courier New', monospace;
            font-weight: 600;
            color: #0d6efd;
        }
        .result-box .value.valid {
            color: #198754;
        }
        .result-box .value.invalid {
            color: #dc3545;
        }
        .barcode-wrapper {
            background: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 12px;
            padding: 1.8rem 1rem 1rem 1rem;
            margin: 1.5rem 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            text-align: center;
        }
        .barcode-wrapper canvas {
            max-width: 100%;
            height: auto;
            background: #fff;
            min-width: 280px;
        }
        .barcode-actions {
            margin-top: 0.8rem;
            display: flex;
            gap: 0.6rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        .example-btn {
            background: rgba(13, 110, 253, 0.08);
            border: 1px solid rgba(13, 110, 253, 0.2);
            border-radius: 6px;
            padding: 0.4rem 0.9rem;
            font-size: 0.85rem;
            color: #0d6efd;
            cursor: pointer;
            transition: all 0.15s;
            font-family: 'Courier New', monospace;
        }
        .example-btn:hover {
            background: rgba(13, 110, 253, 0.18);
            transform: translateY(-1px);
        }
        .example-btn i {
            margin-right: 4px;
        }
        .status-badge {
            font-size: 0.9rem;
            padding: 0.25rem 0.8rem;
            border-radius: 30px;
            font-weight: 500;
        }
        .status-badge.valid {
            background: #d1e7dd;
            color: #0a5c36;
        }
        .status-badge.invalid {
            background: #f8d7da;
            color: #842029;
        }
        .status-badge.converted {
            background: #cfe2ff;
            color: #084298;
        }
        .math-box {
            background: rgba(13, 110, 253, 0.04);
            border-left: 4px solid #0d6efd;
            padding: 1.2rem 1.5rem;
            border-radius: 0 8px 8px 0;
            margin: 1.5rem 0;
        }
        .math-box code {
            background: #e9ecef;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        .subsection-title {
            font-weight: 600;
            margin-top: 2.2rem;
            margin-bottom: 1rem;
            color: #1a3a5c;
            font-size: 1.2rem;
        }
        .property-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .property-table th,
        .property-table td {
            padding: 0.65rem 0.9rem;
            border: 1px solid #dee2e6;
        }
        .property-table th {
            background: #f1f3f5;
            font-weight: 600;
        }
        .property-table tr:nth-child(even) {
            background: rgba(13, 110, 253, 0.03);
        }
        .authority-note {
            font-size: 0.85rem;
            color: #6c757d;
            border-top: 1px solid #dee2e6;
            padding-top: 1rem;
            margin-top: 1.5rem;
        }
        .case-study {
            background: #f0f5fb;
            border-radius: 10px;
            padding: 1.5rem 1.8rem;
            margin: 1.8rem 0;
            border-left: 5px solid #0d6efd;
        }
        .key-point {
            font-weight: 600;
            color: #0d6efd;
        }
        .deep-dive {
            margin: 1.8rem 0;
        }
        .deep-dive p {
            text-align: justify;
        }
        .privacy-note {
            font-size: 0.9rem;
            background: #e7f3ff;
            border: 1px solid #b8daff;
            color: #004085;
            padding: 0.5rem 1.2rem;
            border-radius: 6px;
            margin: 1rem 0;
        }
        .warning-note {
            background: #fff3cd;
            border: 1px solid #ffeeba;
            color: #856404;
            padding: 0.5rem 1.2rem;
            border-radius: 6px;
            margin: 1rem 0;
            display: none;
        }
        .input-group-custom {
            margin-bottom: 0.5rem;
        }
        .barcode-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.5rem 1.5rem;
            margin: 0.8rem 0;
        }
        .barcode-info-grid .item {
            display: flex;
            justify-content: space-between;
            padding: 0.2rem 0;
            border-bottom: 1px dashed #e9ecef;
        }
        .barcode-info-grid .item .lbl {
            color: #495057;
            font-weight: 500;
        }
        .barcode-info-grid .item .val {
            font-family: 'Courier New', monospace;
            font-weight: 600;
            color: #0d6efd;
        }
        .author-bio {
            background: #f8f9fa;
            border-left: 4px solid #0d6efd;
            padding: 1.2rem 1.5rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
        }
        .toast {
            background: #fff;
            border-radius: 8px;
            padding: 0.8rem 1.2rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            border-left: 5px solid #198754;
            margin-top: 0.5rem;
            min-width: 200px;
        }
        .toast.error {
            border-left-color: #dc3545;
        }
        .legend-row {
            display: flex;
            justify-content: center;
            gap: 1.2rem;
            font-size: 0.8rem;
            color: #495057;
            margin-top: 0.3rem;
            flex-wrap: wrap;
        }
        .legend-row span {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .legend-row .swatch {
            display: inline-block;
            width: 20px;
            height: 4px;
            background: #000;
        }
        .legend-row .swatch.guard {
            background: #000;
            height: 6px;
        }
        .legend-row .swatch.space {
            background: #fff;
            border: 1px solid #ccc;
            height: 6px;
        }
        @media (max-width: 576px) {
            .barcode-info-grid {
                grid-template-columns: 1fr;
            }
            .result-box .label {
                min-width: 80px;
            }
            .barcode-wrapper canvas {
                min-width: 200px;
            }
        }