* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        html { font-size: 50px; }
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: #f5f5f5;
            color: #333;
            max-width: 480px;
            margin: 0 auto;
            min-height: 100vh;
            position: relative;
            padding-bottom: 1.4rem;
        }
        a { text-decoration: none; color: inherit; }
        img { display: block; max-width: 100%; }

        /* ============ HEADER (giống gốc) ============ */
        .lottery-header-container {
            position: sticky;
            top: 0;
            z-index: 100;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.24rem 0.3rem;
            border-bottom: 1px solid #eee;
        }
        .lottery-header-title {
            font-size: 0.36rem;
            font-weight: 600;
            color: #2d3436;
        }
        .lottery-header-right {
            width: 0.5rem;
            height: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .lottery-header-right img {
            width: 0.4rem;
            height: 0.4rem;
            opacity: 0.7;
        }

        /* ============ FILTER DROPDOWN ============ */
        .lottery-Tab {
            position: absolute;
            top: 0.88rem;
            right: 0.2rem;
            background: #fff;
            border-radius: 0.12rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            padding: 0.2rem 0;
            min-width: 2.2rem;
            z-index: 99;
        }
        .lottery-Tab > div {
            padding: 0.18rem 0.3rem;
            font-size: 0.28rem;
            color: #333;
            cursor: pointer;
            white-space: nowrap;
        }
        .lottery-Tab > div:hover {
            background: #f5f5f5;
        }
        .lottery-Tab > div.active span {
            color: #FF4941;
            font-weight: 600;
        }
        .triangle_3 {
            position: absolute;
            top: -0.1rem;
            right: 0.2rem;
            width: 0;
            height: 0;
            border-left: 0.1rem solid transparent;
            border-right: 0.1rem solid transparent;
            border-bottom: 0.12rem solid #fff;
        }

        /* ============ PULL TO REFRESH ============ */
        .pull-indicator {
            text-align: center;
            padding: 0.2rem 0;
            font-size: 0.24rem;
            color: #999;
            background: #f5f5f5;
        }

        /* ============ SCROLL CONTENT ============ */
        .lottery-scroll {
            position: relative;
            overflow: auto;
            background: #fff;
        }

        /* ============ LIST ITEM (giống .lottery-list-item) ============ */
        .lottery-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .lottery-list-item {
            display: flex;
            align-items: center;
            gap: 0.24rem;
            padding: 0.24rem 0.3rem;
            background: #fff;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
            position: relative;
        }
        .lottery-list-item:active {
            background: #f8f8f8;
        }
        .lottery-list-item > img {
            width: 0.8rem;
            height: 0.8rem;
            border-radius: 0.12rem;
            object-fit: cover;
            flex-shrink: 0;
            background: #f5f5f5;
        }
        .lottery-list-item > img.fallback {
            padding: 0.1rem;
            background: linear-gradient(135deg, #FF6B6B, #FF4757);
        }
        .right-arrow {
            position: absolute;
            right: 0.3rem;
            top: 50%;
            transform: translateY(-50%);
            width: 0.16rem;
            height: 0.16rem;
            border-top: 0.03rem solid #ccc;
            border-right: 0.03rem solid #ccc;
            transform: translateY(-50%) rotate(45deg);
        }
        .lottery-change {
            flex: 1;
            min-width: 0;
            padding-right: 0.4rem;
        }
        .lottery-name {
            font-size: 0.3rem;
            color: #2d3436;
            font-weight: 500;
            margin-bottom: 0.06rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .lottery-periods {
            display: flex;
            align-items: center;
            gap: 0.16rem;
            font-size: 0.26rem;
        }
        .lottery-time {
            color: #999;
        }
        .lottery-zoushitu {
            color: #FF4941;
            font-size: 0.24rem;
        }
        .ball-list {
            display: none;
        }
        .ball-list.null {
            display: block;
            font-size: 0.24rem;
            color: #999;
            margin-top: 0.06rem;
        }
        .ball-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.12rem;
            margin-top: 0.12rem;
            padding: 0.12rem 0;
        }
        .ball-row .ball {
            width: 0.48rem;
            height: 0.48rem;
            border-radius: 50%;
            background: linear-gradient(135deg, #FF6B6B, #FF4757);
            color: #fff;
            font-size: 0.24rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .total-sum {
            font-size: 0.26rem;
            color: #333;
            margin-top: 0.1rem;
            font-weight: 500;
        }

        /* ============ FLOAT KEFU - dùng chung từ assets/css/kefu.css ============ */

        /* ============ FOOTER NAV ============ */
        .footer-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 480px;
            background: #fff;
            border-top: 1px solid #eee;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
            z-index: 100;
        }
        .footer-nav > div {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            padding: 0.16rem 0;
        }
        .footer-nav li {
            list-style: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.06rem;
            position: relative;
        }
        .footer-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.06rem;
        }
        .footer-link img {
            width: 0.5rem;
            height: 0.5rem;
        }
        .footer-link span {
            font-size: 0.22rem;
            color: #999;
        }
        .footer-link.active span {
            color: #FF4757;
        }
        .footer-nav > p {
            height: 0.36rem;
            background: #fff;
        }
