/* ==== Free entries / tickets dashboard (theme-agnostic) ==== */
.wx-ticket-dashboard {
    --wxft-accent: #7c3aed;
    --wxft-accent-hover: #6d28d9;
    --wxft-radius: 16px;
    --wxft-line: rgba(128, 128, 128, .26);
    --wxft-line-strong: rgba(128, 128, 128, .5);
    --wxft-surface: rgba(128, 128, 128, .06);
    --wxft-surface-2: rgba(128, 128, 128, .11);
    --wxft-muted: rgba(128, 128, 128, 1);
    margin: 24px 0;
    padding: 20px;
    color: inherit;
    background: var(--wxft-surface);
    border: 1px solid var(--wxft-line);
    border-radius: var(--wxft-radius);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
    .wx-ticket-dashboard {
        --wxft-line: color-mix(in srgb, currentColor 18%, transparent);
        --wxft-line-strong: color-mix(in srgb, currentColor 38%, transparent);
        --wxft-surface: color-mix(in srgb, currentColor 5%, transparent);
        --wxft-surface-2: color-mix(in srgb, currentColor 10%, transparent);
        --wxft-muted: color-mix(in srgb, currentColor 62%, transparent);
    }
}

.wx-ticket-dashboard * {
    box-sizing: border-box;
}

.wx-ticket-dashboard h3 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 700 !important;
    letter-spacing: -.01em;
    color: inherit;
}

.wx-tickets-table-container {
    border: 1px solid var(--wxft-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--wxft-surface);
}

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

.wx-tickets-table th,
.wx-tickets-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--wxft-line);
    color: inherit;
    background: transparent;
    vertical-align: middle;
}

.wx-tickets-table thead th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--wxft-muted);
    background: var(--wxft-surface-2);
}

.wx-tickets-table tbody tr {
    transition: background-color .15s ease;
}

.wx-tickets-table tbody tr:last-child td {
    border-bottom: none;
}

.wx-tickets-table tbody tr:hover {
    background: var(--wxft-surface-2);
}

.wx-tickets-table td.free-ticket-numbers {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    font-weight: 700;
    font-size: 1rem;
}

.wx-tickets-table a {
    color: var(--wxft-accent);
    font-weight: 600;
    text-decoration: none;
}

.wx-tickets-table a:hover {
    text-decoration: underline;
}

.ticket-expired {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: .78rem;
    font-weight: 600;
    color: #b91c1c;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .3);
}

.wx-claim-ticket {
    background: var(--wxft-accent);
    color: #fff;
    border: none;
    padding: 9px 18px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    outline: none !important;
    transition: background-color .2s ease, transform .2s ease;
}

.wx-claim-ticket:hover {
    background: var(--wxft-accent-hover);
    transform: translateY(-1px);
}

/* Modal wrapper */
#wx-claim-ticket-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

/* Dark background overlay */
.wx-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
}

/* Modal box */
.wx-modal-content {
    position: relative;
    margin: 6% auto;
    padding: 28px 24px;
    background: #fff;
    color: #1e293b;
    width: 420px;
    max-width: 95%;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
    animation: fadeInScale 0.25s ease;
}

/* Close button */
.wx-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    transition: color .2s ease;
}
.wx-modal-close:hover { color: #1e293b; }

/* Headline */
.wx-modal-content h2 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

/* Ticket number */
.ticket-number-display {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 12px;
    background: #f1f5f9;
}

.ticket-number-display #wx-ticket-number {
    font-weight: 800;
    color: #7c3aed;
}

.free-ticket-generate-success{
    text-align: center;
    font-size: .9rem;
    color: #16a34a;
    margin-top: -5px;
    margin-bottom: 10px;
}
.free-ticket-generate-error{
    text-align: center;
    font-size: .9rem;
    color: #dc2626;
    margin-bottom: 10px;
}

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

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

.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
}

.select-giveaway-product,
.giveaway-input-quantity {
    width: 100% !important;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: .9rem;
}

.giveaway-input-quantity:focus,
.select-giveaway-product:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}

#wx-claim-ticket-modal .select2-container {
    width: 100% !important;
    z-index: 100001;
}

#wx-claim-ticket-modal .select2-container--default .select2-selection--multiple,
#wx-claim-ticket-modal .select2-container--default .select2-selection--single {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    min-height: 42px;
}

#wx-claim-ticket-modal .select2-dropdown {
    z-index: 100002;
    border-color: #e2e8f0;
    border-radius: 10px;
}

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

.giveaway-free-ticket-generate {
    min-width: 160px;
    padding: 11px 18px;
    border: none;
    background: #7c3aed;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none !important;
    transition: background .2s ease, opacity .2s ease;
}

.giveaway-free-ticket-generate:hover {
    background: #6d28d9;
    color: #fff;
}

.giveaway-free-ticket-generate:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* 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: center;
    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);*/
/*}*/