* { box-sizing: border-box; margin: 0; padding: 0; }
        
        body { 
            font-family: "Sarabun", sans-serif; 
            margin: 0;
            padding: 0;
            background: linear-gradient(-45deg, #022b42, #005f73, #0a9396, #0077b6, #03045e, #023e8a);
            background-size: 400% 400%;
            animation: oceanGlow 10s ease infinite;
            display: flex; 
            justify-content: center; 
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        @keyframes oceanGlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .stars-overlay {
            position: fixed;
            top: -50%; left: -50%; width: 200%; height: 200%;
            pointer-events: none;
            background-image: 
                radial-gradient(2px 2px at 50px 100px, #fff, rgba(0,0,0,0)),
                radial-gradient(3px 3px at 150px 300px, #ffde59, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 250px 80px, #00f0ff, rgba(0,0,0,0)),
                radial-gradient(3px 3px at 350px 400px, #ffd166, rgba(0,0,0,0));
            background-repeat: repeat;
            background-size: 400px 400px;
            animation: starRotate 40s linear infinite;
            opacity: 0.85;
            z-index: 1;
        }

        @keyframes starRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Container Card */
        .ticket {
            margin-top: 68px !important;
            width: 100%; 
            max-width: 440px; 
            border-radius: 20px;
            overflow: hidden; 
            color: #2b2b2b; 
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 180, 216, 0.4);
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 2;
            background: #f0f8ff;
            margin: auto;
        }

        /* Banner */
        .ticket-banner {
            width: 100%;
            background: #0077b6;
        }
        .ticket-banner img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Main Header */
        .ticket-head {
            background: linear-gradient(135deg, #0077b6, #023e8a);
            color: #fff; 
            padding: 16px 15px; 
            text-align: center; 
            font-family: 'Kanit', sans-serif;
            border-bottom: 3px solid #ffb703;
        }
        .ticket-head h1 { 
            font-size: 20px; 
            font-weight: 800; 
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.4); 
            letter-spacing: 0.5px;
            line-height: 1.3;
        }
        .ticket-head .sub-title {
            font-size: 14px;
            color: #90e0ef;
            font-weight: 700;
            margin-top: 2px;
        }
        .ticket-head .meta-info { 
            display: inline-block;
            background: rgba(0,0,0,0.25);
            padding: 6px 14px;
            border-radius: 20px;
            margin-top: 8px;
            font-size: 12.5px; 
            color: #ffde59; 
            font-weight: 600; 
            line-height: 1.4;
            border: 1px solid rgba(255,222,89,0.3);
        }

        .ticket-body { padding: 16px 14px; }

        /* Event Cards */
        .event-card {
            background: #ffffff;
            border-radius: 14px;
            padding: 14px 12px;
            margin-bottom: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            border: 2px solid #0096c7;
        }

        .event-card.gold {
            border-color: #ffb703;
        }
        .event-card.gold .event-header {
            background: linear-gradient(135deg, #d48806, #ffb703);
            color: #3d2400;
        }

        .event-header {
            padding: 10px 14px;
            border-radius: 8px;
            font-family: 'Kanit', sans-serif;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #0077b6, #0096c7);
            color: #ffffff;
        }
        .event-title { font-size: 15px; font-weight: 700; }
        .event-pool { 
            font-size: 11.5px; 
            background: rgba(255,255,255,0.25); 
            padding: 3px 10px; 
            border-radius: 12px;
            font-weight: 600;
        }

        /* Reward Grid Styles */
        .reward-grid { display: flex; flex-direction: column; gap: 10px; }

        .rank-top {
            background: linear-gradient(135deg, #fffdf0, #fff3c4);
            border: 2px solid #ffc107;
            border-radius: 10px;
            padding: 10px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .rank-top .badge { font-family: 'Kanit'; font-size: 14px; font-weight: 700; color: #b78103; }
        .rank-top .condition { font-size: 12px; color: #555; font-weight: 600; }
        .rank-top .prize { font-family: 'Kanit'; font-size: 16px; font-weight: 800; color: #d48806; }

        .rank-others {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 10px;
            border: 1px solid #eee;
        }
        .rank-others .title {
            font-size: 13.5px;
            font-weight: 700;
            color: #444;
            font-family: 'Kanit';
            margin-bottom: 8px;
            text-align: center;
        }
        .rank-sub-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            text-align: center;
        }
        .rank-sub-grid.col-3 {
            grid-template-columns: repeat(3, 1fr);
        }
        .rank-sub-item {
            background: #fff;
            padding: 8px 4px;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }
        .rank-sub-item .cond { font-size: 11px; color: #555; font-weight: 600; font-family: 'Kanit'; }
        .rank-sub-item .val { font-size: 12.5px; font-weight: 800; color: #2b2b2b; font-family: 'Kanit'; margin-top: 2px; }

        /* Bonus Boxes */
        .bonus-box {
            background: #e0f7fa;
            border: 1.5px dashed #00b4d8;
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 12.5px;
            color: #0077b6;
            font-family: 'Kanit';
            margin-top: 2px;
            line-height: 1.5;
        }
        .bonus-box strong { color: #023e8a; font-weight: 800; }

        /* Timeline List */
        .timeline-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            font-size: 12.5px;
        }
        .timeline-item {
            background: #fdfbf7;
            border-left: 4px solid #0096c7;
            padding: 8px 10px;
            border-radius: 0 8px 8px 0;
        }
        .timeline-item strong {
            color: #023e8a;
            font-family: 'Kanit';
            display: block;
            font-size: 13px;
        }

        /* LIVE Channels */
        .live-channels {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            text-align: center;
            margin-top: 8px;
        }
        .live-box {
            background: #023e8a;
            color: #fff;
            padding: 8px 4px;
            border-radius: 8px;
            font-family: 'Kanit';
        }
        .live-box .app-name { font-size: 12px; color: #ffe57f; font-weight: 600; }
        .live-box .app-id { font-size: 13px; font-weight: 800; margin-top: 2px; }

        /* Match Schedule Card (Golden Ocean Theme) */
        .match-schedule-card {
            background: linear-gradient(145deg, #03045e, #0077b6) !important;
            border: 2px solid #00b4d8 !important;
            box-shadow: 0 0 25px rgba(0, 180, 216, 0.45) !important;
            padding: 16px 14px !important;
            border-radius: 16px !important;
        }

        .schedule-header {
            text-align: center;
            margin-bottom: 14px;
        }
        .schedule-header .live-badge {
            background: #ff0055;
            color: #fff;
            font-size: 11px;
            font-weight: 800;
            padding: 2px 10px;
            border-radius: 12px;
            font-family: 'Kanit', sans-serif;
            display: inline-block;
            margin-bottom: 4px;
            box-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
        }
        .schedule-header h2 {
            color: #ffde59;
            font-size: 20px;
            font-family: 'Kanit', sans-serif;
            font-weight: 800;
            text-shadow: 0 0 10px rgba(255, 222, 89, 0.5);
        }

        .search-section {
            text-align: center;
            margin-bottom: 16px;
        }
        .search-title {
            color: #ffffff;
            font-size: 14px;
            font-family: 'Kanit', sans-serif;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .search-box {
            display: flex;
            gap: 8px;
            justify-content: center;
        }
        .search-input {
            width: 70%;
            background: #ffffff;
            color: #03045e;
            border: 2px solid #00b4d8;
            border-radius: 8px;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            outline: none;
            font-family: 'Sarabun', sans-serif;
        }
        .search-btn {
            background: linear-gradient(135deg, #ffb703, #fb8500);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            padding: 8px 18px;
            font-family: 'Kanit', sans-serif;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
            box-shadow: 0 2px 8px rgba(251, 133, 0, 0.4);
        }
        .search-btn:hover {
            filter: brightness(1.15);
        }

        /* 3-2-3 Grid Tabs */
        .date-grid-tabs {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px;
            margin-bottom: 14px;
        }

        .tab-btn {
            width: calc(33.33% - 4px);
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid #00b4d8;
            border-radius: 8px;
            padding: 6px 2px;
            color: #caf0f8;
            font-family: 'Kanit', sans-serif;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .tab-btn .date { 
            font-size: 11.5px; 
            font-weight: 700; 
            line-height: 1.2;
        }
        .tab-btn .round { 
            font-size: 9.5px; 
            opacity: 0.85; 
            margin-top: 1px; 
        }

        .tab-btn.active {
            background: linear-gradient(135deg, #ffb703, #90e0ef) !important;
            color: #03045e !important;
            border: none !important;
            box-shadow: 0 0 10px rgba(255, 183, 3, 0.8) !important;
            font-weight: 800;
        }

        .match-date-title {
            color: #ffde59;
            font-size: 14px;
            font-family: 'Kanit', sans-serif;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Team Cards */
        .team-card {
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 14px;
            border: 1.5px solid #00b4d8;
            box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
        }
        .team-header {
            background: linear-gradient(90deg, #0077b6, #00b4d8);
            color: #ffffff;
            padding: 7px 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: 'Kanit', sans-serif;
            font-weight: 800;
            font-size: 14px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        .team-time {
            font-size: 12px;
            background: rgba(0, 0, 0, 0.25);
            color: #ffffff;
            padding: 2px 10px;
            border-radius: 12px;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            background: #ffffff;
        }
        .player-cell {
            padding: 10px 6px;
            text-align: center;
            border-bottom: 1px solid #caf0f8;
            border-right: 1px solid #caf0f8;
            background: #f0f8ff;
        }
        .player-cell:nth-child(2n) { border-right: none; }
        .player-cell:nth-child(3), .player-cell:nth-child(4) { border-bottom: none; }
        
        .p-name {
            font-family: 'Sarabun', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: #03045e;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .p-name.highlight-red { 
            color: #e6005c; 
        }
        .p-idx {
            font-size: 11px;
            color: #0077b6;
            margin-top: 2px;
            font-weight: 600;
            font-family: sans-serif;
        }

        .tab-content { display: none; }
        .tab-content.active { display: block; }

        /* Force Pure White Footer */
        .ticket .ticket-foot,
        div.ticket-foot {
            background-color: #ffffff !important;
            background: #ffffff !important;
            border-top: 2px dashed #bde0fe !important; 
            padding: 14px 15px 16px 15px !important; 
            text-align: center; 
            margin-top: auto;
        }
        .ticket-foot .note { 
            color: #2b2b2b !important; 
            line-height: 1.6; 
            font-size: 11.5px; 
            text-align: left;
            margin-bottom: 12px;
        }
        .ticket-foot .note strong { 
            font-size: 12.5px; 
            color: #000000 !important; 
        }
        
        .btn-play {
            display: block; 
            width: 100%; 
            background: linear-gradient(135deg, #ffc107, #ff9800); 
            color: #4a2800;
            font-family: 'Kanit'; 
            font-weight: 800; 
            text-decoration: none; 
            padding: 12px;
            border-radius: 12px; 
            font-size: 15px;
            box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
            text-align: center;
            letter-spacing: 0.3px;
        }
	   
        /* Interactive Registration Buttons */
        .btn-register {
            display: block;
            width: 100%;
            padding: 10px 0;
            border-radius: 10px;
            font-family: 'Kanit', sans-serif;
            font-size: 13.5px;
            font-weight: 800;
            text-align: center;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            animation: pulseGlow 2s infinite ease-in-out;
        }

        .btn-register::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(
                120deg,
                transparent,
                rgba(255, 255, 255, 0.45),
                transparent
            );
            transition: none;
            animation: shimmerWave 2.5s infinite;
        }

        .btn-early {
            background: linear-gradient(135deg, #ff7b00, #ff4500);
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(255, 69, 0, 0.4);
        }

        .btn-normal {
            background: linear-gradient(135deg, #0077b6, #023e8a);
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(0, 119, 182, 0.4);
        }

        .btn-rebuy {
            background: linear-gradient(135deg, #ff0055, #d6336c);
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(255, 0, 85, 0.4);
        }

        .btn-register:hover, .btn-register:active {
            transform: scale(1.03) translateY(-2px);
            filter: brightness(1.1);
        }

        @keyframes pulseGlow {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.018); }
        }

        @keyframes shimmerWave {
            0% { left: -100%; }
            30%, 100% { left: 150%; }
        }

/* ---- additions (round 12909202601) ---- */
.player-cell.match-hit { background: #fff3c4 !important; box-shadow: inset 0 0 0 2px #ffb703; }
.player-cell.match-dim { opacity: 0.25; }
.no-team { text-align:center; color:#caf0f8; font-family:'Kanit',sans-serif; font-size:12.5px; padding:14px 6px; opacity:.85; }
.player-cell:nth-last-child(-n+2) { border-bottom: none; }
