 .math-result {
            padding: 15px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 1.5rem;
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            margin: 10px 0;
            text-align: center;
        }
        .math-equation {
            font-size: 1.3rem;
            padding: 15px;
            background-color: rgba(0, 123, 255, 0.06);
            border-left: 4px solid var(--primary-color, #0d6efd);
            border-radius: 4px;
            margin: 15px 0;
        }
        .subsection-title {
            font-weight: 600;
            margin-top: 2rem;
            margin-bottom: 1rem;
            color: var(--accent-color, #2c3e50);
            font-size: 1.2rem;
        }
        .math-box {
            background-color: rgba(0, 123, 255, 0.05);
            border-left: 3px solid var(--primary-color, #0d6efd);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        .function-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(0, 123, 255, 0.10);
            border: 1px solid rgba(0, 123, 255, 0.20);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color, #0d6efd);
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Segoe UI', sans-serif;
        }
        .example-btn:hover {
            background-color: rgba(0, 123, 255, 0.20);
            transform: translateY(-2px);
        }
        .math-notation {
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            font-size: 1.1rem;
        }
        .property-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .property-table th,
        .property-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color, #dee2e6);
        }
        .property-table th {
            background-color: var(--light-gray, #f8f9fa);
            font-weight: 600;
        }
        .property-table tr:nth-child(even) {
            background-color: rgba(0, 123, 255, 0.04);
        }
        .authority-note {
            font-size: 0.85rem;
            color: var(--text-muted, #6c757d);
            border-top: 1px solid var(--border-color, #dee2e6);
            padding-top: 1rem;
            margin-top: 1rem;
            text-align: right;
        }
        .case-study {
            background-color: #f0f7ff;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-left: 5px solid var(--primary-color, #0d6efd);
        }
        .key-point {
            font-weight: 500;
            color: var(--accent-color, #2c3e50);
        }
        .input-group-custom {
            margin-bottom: 1rem;
        }
        .result-row {
            font-size: 1.2rem;
            margin: 0.5rem 0;
        }
        .result-value {
            font-weight: 600;
            color: var(--primary-color, #0d6efd);
            font-size: 2rem;
        }
        .author-bio {
            background-color: #f8f9fa;
            border-left: 4px solid var(--primary-color, #0d6efd);
            padding: 1.2rem;
            margin: 2rem 0;
            border-radius: 0 8px 8px 0;
        }
        .privacy-note {
            font-size: 0.9rem;
            background-color: #e7f3ff;
            border: 1px solid #b8daff;
            color: #004085;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            margin: 1rem 0;
        }
        .warning-note {
            background-color: #fff3cd;
            border: 1px solid #ffeeba;
            color: #856404;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            margin: 1rem 0;
        }
        .deep-dive {
            margin: 1.8rem 0;
        }
        .deep-dive p {
            text-align: justify;
        }
        .unit-note {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .coord-input {
            margin-bottom: 0.5rem;
        }
        .finance-canvas {
            width: 100%;
            height: auto;
            background-color: #fafcff;
            border: 1px solid #dde4ed;
            border-radius: 8px;
            margin-top: 1.5rem;
            display: block;
        }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 0.5rem 0;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: inline-block;
        }
        .legend-color.green {
            background-color: #28a745;
        }
        .legend-color.blue {
            background-color: #0d6efd;
        }
        .legend-color.orange {
            background-color: #fd7e14;
        }
        .legend-color.purple {
            background-color: #6f42c1;
        }
        .legend-color.gray {
            background-color: #6c757d;
        }
        .comparison-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 0.75rem;
            margin: 1rem 0;
        }
        .comparison-card {
            background: #f8faff;
            border: 1px solid #e9ecf0;
            border-radius: 6px;
            padding: 0.75rem 0.5rem;
            text-align: center;
            transition: all 0.2s;
        }
        .comparison-card:hover {
            border-color: #0d6efd;
            background: #f0f6ff;
        }
        .comparison-card .freq-label {
            font-size: 0.8rem;
            color: #6c757d;
        }
        .comparison-card .apy-value {
            font-weight: 700;
            font-size: 1.2rem;
            color: #0d6efd;
        }
        .chart-wrapper {
            position: relative;
            height: 300px;
            margin: 1.5rem 0;
        }
        .chart-wrapper canvas {
            width: 100% !important;
            height: 100% !important;
        }
        .result-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            justify-content: space-around;
            padding: 1rem 0;
        }
        .result-summary .stat {
            text-align: center;
        }
        .result-summary .stat .number {
            font-size: 2.2rem;
            font-weight: 700;
            color: #0d6efd;
        }
        .result-summary .stat .label {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .regulatory-badge {
            display: inline-block;
            background: #e7f3ff;
            color: #004085;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin: 0.25rem 0;
        }
        .tool-header .badge-finance {
            background: #0d6efd;
            color: #fff;
            font-weight: 500;
            padding: 0.35rem 0.9rem;
            border-radius: 30px;
            font-size: 0.85rem;
        }
        @media (max-width: 576px) {
            .result-summary .stat .number {
                font-size: 1.6rem;
            }
            .comparison-grid {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            }
        }