.wx-ticket-dashboard {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.wx-ticket-dashboard h3 {
    margin-top: 0;
    color: #333;
}

.wx-tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.wx-tickets-table th,
.wx-tickets-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wx-tickets-table th {
    background-color: #f1f1f1;
    font-weight: 600;
}

.wx-tickets-table tr:hover {
    background-color: #f9f9f9;
}

.wx-claim-ticket {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    outline: none !important;
}

.wx-claim-ticket:hover {
    background-color: #45a049;
}

/* Modal wrapper */
#wx-claim-ticket-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    font-family: inherit;
}

/* Dark background overlay */
.wx-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* Modal box */
.wx-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 25px 20px;
    background: #fff;
    width: 400px;
    max-width: 95%;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: fadeInScale 0.3s ease;
}

/* Close button */
.wx-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
    color: #666;
}
.wx-modal-close:hover { color: #000; }

/* Headline */
.wx-modal-content h2 {
    margin: 0 0 15px;
    font-size: 10px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

/* Ticket number */
.ticket-number-display {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}
.free-ticket-generate-success{
    text-align: center;
    font-size: 16px;
    color: green;
    margin-top: -5px;
    margin-bottom: 10px;
}
.free-ticket-generate-error{
    text-align: center;
    font-size: 16px;
    color: red;
    margin-bottom: 10px;
}

/* Form styling */
.customer-ticket-claim-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.select-giveaway-product,
.giveaway-input-quantity {
    width: 100% !important;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Button styling */
.form-actions {
    display: flex;
    justify-content: center;
}

.giveaway-free-ticket-generate {
    min-width: 150px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    outline: none !important;
    transition: background 0.2s ease;
}

.giveaway-free-ticket-generate:hover {
    background: #006799;
    color: white;
    border-color: #006799;
}

/* Animation */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}



@media (max-width: 768px) {
    .wx-tickets-table-container {
        overflow-x: auto;
    }

    .wx-tickets-table {
        min-width: 600px;
    }
}


/* My account reward point show start*/

.reward-card {
    border-radius: 10px;
    padding: 15px;
    width: fit-content;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: loopParallax 7s ease-in-out infinite;
    margin-left: 0;
    margin-bottom: 10px;
}

.reward-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.reward-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    animation: shineEffect 7s ease-in-out infinite;
}

.card-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.card-logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffcc33 0%, #ffb347 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.card-chip::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    top: 15px;
}

img.reward-points-icon{
    height: 100px;
}
.reward-name{
    margin: 0;
    padding: 0;
    text-align: center;
}

.earn-points-value, .used-points-value, .available-points-value {
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: countUp 1.5s ease-out forwards;
}
.earn-points-label, .used-points-label, .available-points-label {
    opacity: 0.8;
    margin: 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.reward-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Animations */
@keyframes loopParallax {
    0%   { transform: perspective(400px) translateX(0px) rotateY(-5deg); }
    25%  { transform: perspective(400px) translateX(-5px) rotateY(5deg); }
    50%  { transform: perspective(400px) translateX(0px) rotateY(5deg); }
    75%  { transform: perspective(400px) translateX(5px) rotateY(-5deg); }
    100% { transform: perspective(400px) translateX(0px) rotateY(-5deg); }
}

@keyframes shineEffect {
    0%   { transform: translateX(-100%); opacity: 0; }
    25%  { opacity: 0.6; }
    50%  { transform: translateX(100%); opacity: 0.8; }
    75%  { opacity: 0.6; }
    100% { transform: translateX(-100%); opacity: 0; }
}


/* My account reward point show end*/

/* Main container styling */
.reward-points-style-show {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reward-header {
    text-align: center;
    margin-bottom: 30px;
}

.reward-header h2 {
    color: #2d3436;
    margin-bottom: 8px;
    font-weight: 600;
}

.current-points {
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 5px;
}

.points-count {
    font-weight: bold;
    color: #0984e3;
    font-size: 1.4rem;
}

/* Tiers container */
.reward-tiers {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
}

/* Individual tier styling */
.tier {
    text-align: center;
    flex: 1;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.tier:not(:last-child) {
    margin-right: 20px;
}

.tier-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}


.tier.current .tier-image {
    border-color: #0984e3;
    box-shadow: 0 5px 20px rgba(9, 132, 227, 0.4);
    transform: scale(1.1);
}

.tier-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.tier.locked .tier-image img {
    filter: blur(8px) grayscale(80%);
}

.tier-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2d3436;
}

.tier.main .tier-name {
    color: black;
}

.tier.current .tier-name {
    color: #0984e3;
}

.tier-points {
    color: #636e72;
    font-size: 0.9rem;
}

.tier-progress {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00b894 0%, #0984e3 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease;
}

/* Connector lines between tiers */
.tier-connector {
    position: absolute;
    top: 60px;
    left: calc(100% - 10px);
    width: 20px;
    height: 2px;
    background: #b2bec3;
    z-index: 1;
}

.tier-connector:after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b2bec3;
}

/* Responsive design */
@media (max-width: 768px) {
    .reward-tiers {
        flex-direction: column;
        align-items: center;
    }

    .tier {
        width: 100%;
        margin-bottom: 30px;
        margin-right: 0 !important;
    }

    .tier-connector {
        display: none;
    }
}

/* Log table design start */

.reward-point-log-table-show {
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.reward-point-log-table-show h2 {
    background: linear-gradient(135deg, #4a6fa5, #2c3e50);
    color: white;
    padding: 25px;
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-points-summary strong {
    font-weight: 600;
    color: #2c3e50;
}

.reward_point_log_table {
    width: 100%;
    border-collapse: collapse;
}

.reward_point_log_table th {
    background-color: #f8f9fa;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 16px;
}

.reward_point_log_table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
}

.reward_point_log_table tr:last-child td {
    border-bottom: none;
}

.reward_point_log_table tr:hover {
    background-color: #f8f9fa;
}

.points-cell {
    text-align: right;
    font-weight: 600;
}

.date-cell {
    color: #6c757d;
    white-space: nowrap;
}

.remark-cell {
    max-width: 300px;
}

.tfoot-row {
    background-color: #f8f9fa !important;
    font-weight: 600;
}

.tfoot-row td {
    padding: 18px 20px;
    font-size: 16px;
    color: #2c3e50;
    border-top: 2px solid #e9ecef;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

@media (max-width: 768px) {
    .reward-point-log-table-show {
        margin: 15px auto;
        border-radius: 8px;
    }

    .reward-point-log-table-show h2 {
        padding: 18px;
        font-size: 22px;
    }

    .reward_point_log_table th,
    .reward_point_log_table td {
        padding: 12px 15px;
    }

    .reward_point_log_table {
        display: block;
        overflow-x: auto;
    }

    .date-cell {
        white-space: nowrap;
    }
}

/* Log table design end */

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--free-ticket a::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22,10V6A2,2 0 0,0 20,4H4A2,2 0 0,0 2,6V10C3.11,10 4,10.9 4,12A2,2 0 0,1 2,14V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V14A2,2 0 0,1 20,12A2,2 0 0,1 22,10M13,17.5H11V16H13V17.5M13,14.5H11V13H13V14.5M13,11.5H11V10H13V11.5M13,8.5H11V7H13V8.5Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    color: #666;
}

/* Active/Current page styling */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--free-ticket.is-active a::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--free-ticket a:hover::before {
    color: #0073aa;
    filter: brightness(1.2);
}