* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft JhengHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            color: #333;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        header {
            background: linear-gradient(to right, #4a148c, #7b1fa2);
            color: white;
            padding: 25px 30px;
            text-align: center;
            position: relative;
        }
        
        header h1 {
            font-size: 1.0rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        header p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .tabs {
            display: flex;
            background: #f8f9fa;
            border-bottom: 2px solid #e0e0e0;
        }
        
        .tab {
            padding: 15px 25px;
            cursor: pointer;
            font-weight: 900;
            color: #555;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
            flex: 1;
            text-align: center;
        }
        
        .tab.active {
            color: #7b1fa2;
            border-bottom: 3px solid #7b1fa2;
            background: white;
        }
        
        .tab-content {
            display: none;
            padding: 30px;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .section-title {
            color: #4a148c;
            font-size: 1.5rem;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #f3e5f5;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i {
            background: #f3e5f5;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .input-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #12005e;
        }
        
        input, select, button {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        input:focus, select:focus {
            border-color: #7b1fa2;
            outline: none;
            box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.2);
        }
        
        button {
            background: linear-gradient(to right, #4a148c, #7b1fa2);
            color: white;
            border: none;
            font-weight: 600;
            cursor: pointer;
            margin-top: 10px;
            padding: 14px;
            font-size: 1.1rem;
        }
        
        button:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(123, 31, 162, 0.3);
        }
        
        .bet-section {
            background: #f3e5f5;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border-left: 4px solid #7b1fa2;
        }
        
        .bet-title {
            font-weight: 600;
            color: #12005e;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .numbers-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .number {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
            background: white;
            border: 2px solid #ddd;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .number.main-match {
            background: linear-gradient(135deg, #ffeb3b, #ffc107);
            border-color: #ff9800;
            color: #333;
            transform: scale(1.1);
            box-shadow: 0 3px 8px rgba(255, 152, 0, 0.3);
        }
        
        .number.special-match {
            background: linear-gradient(135deg, #4caf50, #2e7d32);
            border-color: #2e7d32;
            color: white;
            transform: scale(1.1);
            box-shadow: 0 3px 10px rgba(46, 125, 50, 0.4);
        }
        
        .special-label {
            display: inline-block;
            background: #4caf50;
            color: white;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-right: -30px;
        }
        
        .result-section {
            margin-top: 25px;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 10px;
            border-left: 4px solid #e91e63;
        }
        
        .result-title {
            color: #e91e63;
            font-size: 1.3rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .prize-level {
            font-weight: 600;
            color: #12005e;
            padding: 8px 15px;
            border-radius: 8px;
            background: rgba(233, 30, 99, 0.1);
            margin-top: 10px;
            display: inline-block;
        }
        
        .history-list {
            max-height: 500px;
            overflow-y: auto;
        }
        
        .history-item {
            padding: 15px;
            border-bottom: 1px solid #e0e0e0;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }
        
        .history-item:hover {
            background: #f3e5f5;
        }
        
        .history-item.active {
            background: rgba(123, 31, 162, 0.1);
            border-left: 4px solid #7b1fa2;
        }
        
        .draw-date {
            font-size: 0.9rem;
            color: #666;
            margin-top: 5px;
        }
        
        .footer {
            text-align: center;
            padding: 25px;
            background: #f3e5f5;
            color: #666;
            font-size: 0.9rem;
        }
        
        .prize-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .prize-card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            text-align: center;
            border-top: 4px solid #4a148c;
        }
        
        .prize-name {
            font-weight: 1000;
            color: #4a148c;
            margin-bottom: 10px;
        }
        
        .prize-requirement {
            font-size: 1.2rem;
            color: #666;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        
        .btn-secondary {
            background: linear-gradient(to right, #607d8b, #455a64);
        }
        
        .btn-danger {
            background: linear-gradient(to right, #f44336, #d32f2f);
        }
        
        .empty-message {
            text-align: center;
            color: #999;
            padding: 30px;
            font-style: italic;
        }
        
        .winning-numbers {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 15px 0;
        }
        
        .winning-number {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            background: #2196f3;
            color: white;
            font-size: 1.1rem;
            box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
        }
        
        .winning-number.special {
            background: #4caf50;
            transform: scale(1.1);
        }
        
        .stats {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
            text-align: center;
        }
        
        .stat-card {
            padding: 15px;
            border-radius: 10px;
            background: #f3e5f5;
            min-width: 120px;
        }
        
        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: #4a148c;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: #666;
        }
        
        .bet-result {
            background: #f3e5f5;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border-left: 4px solid #7b1fa2;
        }
        
        .bet-result-title {
            font-weight: 600;
            color: #12005e;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .history-actions {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 5px;
        }
        
        .delete-history {
            background: #f44336;
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        @media (max-width: 768px) {
            .tabs {
                flex-wrap: wrap;
            }
            
            .tab {
                flex: 1 0 50%;
                padding: 12px 10px;
                font-size: 0.9rem;
            }
            
            .stats {
                flex-direction: column;
                gap: 10px;
            }
            
            .number {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
        }