.property-table th,
        .property-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        .input-group-custom {
            margin-bottom: 1rem;
        }
        .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;
        }
        .geometry-canvas {
            width: 100%;
            height: auto;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            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%;
        }
        .legend-color.red {
            background-color: #dc3545;
        }
        .legend-color.blue {
            background-color: #0d6efd;
        }
        .legend-color.gray {
            background-color: #6c757d;
        }
        .legend-color.green {
            background-color: #28a745;
        }
        .prize-tier-table {
            width: 100%;
            font-size: 0.95rem;
        }
        .prize-tier-table th {
            background-color: #e9ecef;
        }
        .badge-odds {
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
        }
        .chart-bar {
            display: flex;
            align-items: flex-end;
            height: 200px;
            gap: 12px;
            padding: 0 10px;
            border-bottom: 2px solid #ccc;
        }
        .chart-bar-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: height 0.4s ease;
        }
        .chart-bar-item .bar {
            width: 100%;
            max-width: 48px;
            background: linear-gradient(180deg, #0d6efd, #4d8cf7);
            border-radius: 4px 4px 0 0;
            min-height: 4px;
            transition: height 0.4s ease;
        }
        .chart-bar-item .bar.highlight {
            background: linear-gradient(180deg, #dc3545, #e9606a);
        }
        .chart-bar-item .label {
            font-size: 0.7rem;
            margin-top: 6px;
            text-align: center;
            word-break: break-word;
            max-width: 60px;
        }
        .chart-bar-item .value-label {
            font-size: 0.7rem;
            color: #555;
            margin-bottom: 2px;
        }
        .expected-value-box {
            background: #f0f7fa;
            border-radius: 12px;
            padding: 1.2rem;
            text-align: center;
            border: 1px solid #cde0e9;
        }
        .expected-value-box .ev-number {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .expected-value-box .ev-negative {
            color: #dc3545;
        }
        .expected-value-box .ev-positive {
            color: #28a745;
        }
        .glossary-term {
            font-weight: 600;
            color: var(--accent-color);
        }
        .footnote {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 0.5rem;
        }
        .lottery-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            background: #e9ecef;
            color: #333;
            margin-right: 0.5rem;
        }
        .lottery-badge.powerball {
            background: #f8d7da;
            color: #721c24;
        }
        .lottery-badge.megamillions {
            background: #d1ecf1;
            color: #0c5460;
        }
        .lottery-badge.lotto649 {
            background: #d4edda;
            color: #155724;
        }
        .lottery-badge.custom {
            background: #fff3cd;
            color: #856404;
        }
        .result-card {
            border-left: 4px solid var(--primary-color);
            background: white;
            border-radius: 8px;
            padding: 1.2rem 1.5rem;
            margin: 0.8rem 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        }
        .result-card .label {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .result-card .value {
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--primary-color);
        }
        .result-card .value.odds {
            font-size: 1.2rem;
            font-family: 'Courier New', monospace;
        }
        .glossary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .glossary-grid .term {
            font-weight: 600;
            color: var(--accent-color);
        }
        .glossary-grid .def {
            color: #555;
        }
        @media (max-width: 768px) {
            .glossary-grid {
                grid-template-columns: 1fr;
            }
            .chart-bar {
                gap: 6px;
            }
            .chart-bar-item .label {
                font-size: 0.6rem;
                max-width: 40px;
            }
        }