/* Club Membership Dashboard Styles - TOP SHOP Theme */
.club-membership-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
}

.club-membership-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    border-radius: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.club-membership-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/card.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.club-membership-header>* {
    position: relative;
    z-index: 2;
}

.club-membership-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.club-membership-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
}

/* Membership Cards Grid - TOP SHOP Style */
.club-membership-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.club-membership-card {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(237, 28, 36, 0.25);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    color: white;
}

.club-membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/card.png') center/cover;
    opacity: 0.15;
    z-index: 1;
}

.club-membership-card>* {
    position: relative;
    z-index: 2;
}

.club-membership-card.premium {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
}

.club-membership-card.exclusive {
    background: linear-gradient(135deg, #ed1c24 0%, #8b0000 100%);
    box-shadow: 0 12px 40px rgba(237, 28, 36, 0.35);
}

.club-membership-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(237, 28, 36, 0.4);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-info {
    flex: 1;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.card-series {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-status.inactive {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.card-body {
    padding: 0 24px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 16px;
    padding-top: 20px;
}

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

.detail-label {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Empty State - TOP SHOP Style */
.club-membership-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 25px;
    margin-bottom: 40px;
    border: 3px solid #ed1c24;
    position: relative;
    overflow: hidden;
}

.club-membership-empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ed1c24, #c41e3a, #ed1c24);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    filter: grayscale(1);
    opacity: 0.7;
}

.club-membership-empty-state h3 {
    font-size: 1.8rem;
    color: #ed1c24;
    margin: 0 0 16px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.club-membership-empty-state p {
    color: #333;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Action Buttons - TOP SHOP Style */
.club-membership-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.club-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.club-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.club-btn:hover::before {
    left: 100%;
}

.club-btn-primary {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.3);
}

.club-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(237, 28, 36, 0.4);
    background: linear-gradient(135deg, #f02029 0%, #d01e3a 100%);
}

.club-btn-secondary {
    background: white;
    color: #ed1c24;
    border: 3px solid #ed1c24;
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.15);
}

.club-btn-secondary:hover {
    background: #ed1c24;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(237, 28, 36, 0.3);
}

.club-btn-full {
    width: 100%;
}

.club-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.1rem;
}

/* Modal Styles - TOP SHOP Theme */
.club-membership-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

.modern-modal {
    background: white;
    margin: 3% auto;
    border-radius: 25px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s ease;
    border: 3px solid #ed1c24;
    position: relative;
}

.modern-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ed1c24, #c41e3a, #ed1c24);
    border-radius: 25px 25px 0 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 0 30px;
    margin-bottom: 30px;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ed1c24, transparent, #ed1c24);
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ed1c24;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    background: #ed1c24;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.modal-close:hover {
    background: #c41e3a;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.modal-description {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Membership Options - TOP SHOP Style */
.membership-options {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.membership-option {
    border: 3px solid #e5e7eb;
    border-radius: 25px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.membership-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ed1c24, #c41e3a, #ed1c24);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.membership-option:hover {
    border-color: #ed1c24;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.15);
}

.membership-option:hover::before {
    transform: scaleX(1);
}

.membership-option.selected {
    border-color: #ed1c24;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05) 0%, rgba(196, 30, 58, 0.05) 100%);
    box-shadow: 0 8px 30px rgba(237, 28, 36, 0.2);
}

.membership-option.selected::before {
    transform: scaleX(1);
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.option-header.premium {
    color: #ed1c24;
}

.option-header.exclusive {
    color: #8b0000;
}

.option-icon {
    font-size: 2rem;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.option-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ed1c24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.option-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-features li {
    padding: 8px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.option-features li::before {
    content: '✓';
    color: #ed1c24;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Coupons Section - TOP SHOP Style */
.club-membership-coupons-section {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 25px;
    border: 3px solid #ed1c24;
    position: relative;
}

.club-membership-coupons-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ed1c24, #c41e3a, #ed1c24);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ed1c24;
    margin: 0 0 30px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ed1c24;
    border-radius: 2px;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.coupon-card {
    background: linear-gradient(135deg, #ed1c24 0%, #c41e3a 100%);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(237, 28, 36, 0.25);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 180px;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/card.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.coupon-card>* {
    position: relative;
    z-index: 2;
}

.coupon-card.active {
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.coupon-card.used {
    opacity: 0.5;
    background: linear-gradient(135deg, #666 0%, #999 100%);
    transform: scale(0.95);
}

.coupon-card.expired {
    opacity: 0.5;
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 100%);
    transform: scale(0.95);
}

.coupon-card:hover:not(.used):not(.expired) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(237, 28, 36, 0.4);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0 24px;
    margin-bottom: 16px;
}

.coupon-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-badge.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.status-badge.used {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.status-badge.expired {
    background: rgba(139, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.coupon-body {
    padding: 0 24px;
    margin-bottom: 20px;
}

.coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 15px;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 2px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.coupon-expiry {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 500;
}

.coupon-actions {
    text-align: center;
    padding: 0 24px 24px 24px;
}

.copy-coupon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-coupon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Legacy voucher styles for backward compatibility */
.club-vouchers {
    list-style: none;
    padding: 0;
    margin: 0;
}

.club-vouchers li {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-vouchers .voucher-code {
    font-weight: bold;
}

.club-vouchers .voucher-amount {
    color: green;
}

.club-vouchers .voucher-expiry-date {
    color: #999;
}

.club-vouchers button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.club-vouchers button:hover {
    background-color: #005177;
}

.club-discount img {
    vertical-align: middle;
}

.club-membership-birthdate input[type="date"] {
    display: block;
    width: 100%;
    min-height: 4.1rem;
    padding: 0.85rem 2rem;
    border: 1px solid #eee;
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--wolmart-body-color, #666);
    background-color: transparent;
    border-radius: 2px;
    box-shadow: none;
    outline: 0;
}

.mini-item-meta a {
    display: inline-block;
}

.mini-item-meta a .club-membership-card-name {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.mini-item-meta a .club-membership-card-name .club-membership-card-type {
    display: inline-block;
    margin-left: 5px;
}

.woocommerce-cart .cart_item td.product-subtotal {
    position: relative;
}

.woocommerce-cart .cart_item td.product-subtotal:after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    height: 2px;
    width: 100%;
    background: transparent;
}

.woocommerce-cart .cart_item td.product-subtotal>span:first-child:after {
    content: "" !important;
}

.woocommerce-cart .cart_item td.product-subtotal span:first-child+span:after {
    content: "" !important;
}

.club-membership-insurance-options {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
}

.club-membership-insurance-options h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.insurance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insurance-list li {
    margin: 5px 0;
}

.insurance-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.insurance-list input[type="radio"] {
    margin-right: 10px;
}

.club-membership-insurance-option {
    width: 400px;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.club-membership-insurance-option h4 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

.club-membership-insurance-option select {
    max-width: 100%;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

dl dt {
    font-weight: 600 !important;
    font-size: 1em !important;
}

/* Respo
nsive Design */
@media (max-width: 768px) {
    .club-membership-dashboard {
        padding: 16px;
    }

    .club-membership-title {
        font-size: 2rem;
    }

    .club-membership-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .club-membership-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-status {
        align-self: flex-end;
    }

    .club-membership-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .club-btn {
        min-width: auto;
    }

    .modern-modal {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }

    .membership-options {
        grid-template-columns: 1fr;
    }

    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .coupons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .club-membership-title {
        font-size: 1.75rem;
    }

    .club-membership-card {
        padding: 16px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .modal-header,
    .modal-body {
        padding: 16px;
    }

    .membership-option {
        padding: 16px;
    }
}

/* Animation for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.club-membership-card {
    animation: fadeInUp 0.6s ease forwards;
}

.club-membership-card:nth-child(2) {
    animation-delay: 0.1s;
}

.club-membership-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Toast notification styles */
.club-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
}

.club-toast.error {
    background: #ef4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading states */
.club-btn.loading {
    position: relative;
    color: transparent;
}

.club-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}