/* Premium Health Membership Card Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

.premium-card-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    container-type: inline-size;
}

.premium-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.5);
    background-color: #f4f4f6;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.premium-card * {
    box-sizing: border-box;
}

/* Background Texture Pattern */
.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.05) 1px, transparent 0);
    background-size: 16px 16px;
    opacity: 0.5;
    z-index: 0;
}

/* Base Internal Layout */
.premium-card-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 4% 5%;
}

/* HEADER */
.card-header {
    display: flex;
    align-items: center;
    gap: 3%;
    margin-bottom: 2%;
    border-bottom: 0 !important;
}

.card-logo {
    width: 11%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e0e5ec, #f4f6f8);
    border-radius: 50% 50% 10% 50%;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1), inset -2px -2px 5px rgba(255,255,255,1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.card-logo img {
    width: 70%;
    height: auto;
}

.card-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1.5px solid rgba(0,0,0,0.15);
    padding-bottom: 0.5%;
    position: relative;
}
.card-title-group::after {
    content: '◆';
    position: absolute;
    bottom: -6px;
    left: 45%;
    font-size: 10px;
    color: rgba(0,0,0,0.2);
}

.org-title {
    font-size: 3.5cqw;
    font-weight: 800;
    margin: 0;
    color: #0d1b2a;
    letter-spacing: 1px;
}
.org-subtitle {
    font-size: 1.6cqw;
    font-weight: 600;
    letter-spacing: 4px;
    color: #4a5568;
    text-transform: uppercase;
}

/* BODY */
.card-body {
    display: flex;
    flex: 1;
    margin-top: 2%;
}

/* Left Section */
.card-left-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-tier-name {
    font-family: 'Cinzel', serif;
    font-size: 5cqw;
    font-weight: 700;
    margin-bottom: 2%;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.pricing-wrapper {
    position: relative;
    margin-top: 1%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20%;
}

.starburst-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20%;
    aspect-ratio: 1;
    background: radial-gradient(circle, #b91c1c, #7f1d1d);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2cqw;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 5;
    border: 2px solid #fbbf24;
}
.starburst-badge strong {
    font-size: 3cqw;
    display: block;
}
.starburst-badge::before, .starburst-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: #b91c1c;
    z-index: -1;
    transform: rotate(30deg);
}
.starburst-badge::after {
    transform: rotate(60deg);
}

.price-pill {
    padding: 2% 8%;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    white-space: nowrap;
}
.price-pill.old {
    font-size: 2.5cqw;
    color: #4b5563;
    position: relative;
}
.price-pill.old::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: red;
    transform: rotate(-5deg);
}
.price-pill.new {
    font-size: 4cqw;
    padding: 3% 10%;
}

.launch-ribbon {
    background: #b91c1c;
    color: white;
    font-size: 1.2cqw;
    font-weight: 700;
    padding: 2% 4%;
    margin-top: 4%;
    text-align: center;
    width: 85%;
    margin-left: 5%;
    position: relative;
    box-shadow: 0 3px 5px rgba(0,0,0,0.3);
    text-transform: uppercase;
}
.launch-ribbon::before, .launch-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    background: #7f1d1d;
    z-index: -1;
}
.launch-ribbon::before {
    left: -8px;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.launch-ribbon::after {
    right: -8px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.health-check-info {
    display: flex;
    align-items: center;
    gap: 3%;
    margin-top: 5%;
    font-family: 'Inter', sans-serif;
    font-size: 1.4cqw;
    font-weight: 600;
    color: #1f2937;
}
.icon-clipboard {
    font-size: 3cqw;
    filter: grayscale(100%);
    opacity: 0.8;
}

/* Right Section */
.card-right-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.benefits-box {
    width: 95%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.benefits-header {
    padding: 4% 6%;
    font-size: 1.8cqw;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3%;
    color: #fff;
}
.benefits-list {
    list-style: none;
    padding: 4% 6%;
    margin: 0;
    font-size: 1.3cqw;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6%;
    flex: 1;
}
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 4%;
    padding-bottom: 4%;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.benefits-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2cqw;
    height: 2cqw;
    background: #0f172a;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2cqw;
}

/* Footer */
.card-footer-strip {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5% 5%;
    border-radius: 20px;
    color: #fff;
    font-size: 2cqw;
    font-weight: 600;
    position: relative;
    z-index: 10;
}
.card-footer-strip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.4);
}
.member-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.card-no {
    flex: 1;
    text-align: right;
    font-family: monospace;
    font-size: 2.2cqw;
}
.card-bottom-text {
    text-align: center;
    font-size: 1.2cqw;
    margin-top: 1%;
    font-style: italic;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-bottom-text::before, .card-bottom-text::after {
    content: '';
    display: block;
    width: 15%;
    height: 1px;
    background: currentColor;
    margin: 0 10px;
    opacity: 0.3;
}


/* =========================================
   THEMES
========================================= */

/* CORPORATE CARD */
.theme-corporate {
    background: radial-gradient(circle at 100% 100%, #1a365d 0%, #ffffff 50%);
}
.theme-corporate::before {
    background-image: radial-gradient(circle at 2px 2px, rgba(13, 27, 94, 0.1) 1px, transparent 0);
}
.theme-corporate .card-tier-name {
    color: #0d47a1;
    text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, 0px 3px 5px rgba(13, 71, 161, 0.4);
}
.theme-corporate .price-pill.old {
    background: transparent;
    border: none;
    box-shadow: none;
}
.theme-corporate .price-pill.new {
    background: transparent;
    color: #0d47a1;
    border: none;
    box-shadow: none;
    font-size: 5cqw;
}
.theme-corporate .pricing-wrapper { padding-left: 0; align-items: center; width: 80%; border: 1px solid #0d47a1; border-radius: 12px; margin-left: 5%; background: rgba(255,255,255,0.5); }
.theme-corporate .starburst-badge { display: none; }
.theme-corporate .launch-ribbon {
    position: absolute;
    top: -3%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    margin: 0;
    padding: 1% 4%;
    white-space: nowrap;
    border-radius: 12px;
}
.theme-corporate .launch-ribbon::before, .theme-corporate .launch-ribbon::after { display: none; }
.theme-corporate .benefits-header { background: #0d47a1; }
.theme-corporate .check-icon { background: #0d47a1; }
.theme-corporate .card-footer-strip {
    background: #0d47a1;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 -2px 10px rgba(0,0,0,0.1);
}
.theme-corporate .health-check-info { justify-content: center; width: 80%; margin-left: 5%; }

/* Base shape for waves */
.card-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    z-index: 1;
    pointer-events: none;
}
.theme-corporate .card-wave {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%230d47a1" fill-opacity="1" d="M0,256L48,229.3C96,203,192,149,288,144C384,139,480,181,576,192C672,203,768,181,864,149.3C960,117,1056,75,1152,69.3C1248,64,1344,96,1392,112L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.8;
}

/* SILVER CARD */
.theme-silver {
    background: radial-gradient(circle at top left, #ffffff, #e2e8f0 40%, #cbd5e1);
}
.theme-silver .card-tier-name {
    color: #e2e8f0;
    background: linear-gradient(to bottom, #ffffff, #94a3b8, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.4));
}
.theme-silver .price-pill {
    background: linear-gradient(to bottom, #f8fafc, #cbd5e1);
    color: #1e293b;
}
.theme-silver .benefits-header { background: linear-gradient(to right, #64748b, #94a3b8); }
.theme-silver .check-icon { background: #64748b; }
.theme-silver .card-footer-strip {
    background: linear-gradient(to right, #cbd5e1, #94a3b8, #cbd5e1);
    color: #1e293b;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.8), 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid #fff;
}
.theme-silver .card-footer-strip::after { background: rgba(0,0,0,0.2); }
.theme-silver .card-wave {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23cbd5e1" fill-opacity="0.8" d="M0,128L80,149.3C160,171,320,213,480,213.3C640,213,800,171,960,165.3C1120,160,1280,192,1360,208L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

/* GOLD CARD */
.theme-gold {
    background: radial-gradient(circle at top left, #fffbea, #fef08a 40%, #eab308);
}
.theme-gold::before { background-image: radial-gradient(circle at 2px 2px, rgba(133, 77, 14, 0.1) 1px, transparent 0); }
.theme-gold .org-title { color: #422006; }
.theme-gold .card-tier-name {
    background: linear-gradient(to bottom, #fef08a, #ca8a04, #713f12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.4));
}
.theme-gold .price-pill {
    background: linear-gradient(to bottom, #fef08a, #eab308);
    color: #422006;
    border-color: #fef08a;
}
.theme-gold .benefits-header { background: linear-gradient(to right, #ca8a04, #eab308); color: #422006; }
.theme-gold .check-icon { background: #ca8a04; }
.theme-gold .card-footer-strip {
    background: linear-gradient(to right, #eab308, #ca8a04, #eab308);
    color: #422006;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.8), 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid #fef08a;
}
.theme-gold .card-footer-strip::after { background: rgba(66, 32, 6, 0.2); }
.theme-gold .card-wave {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23fef08a" fill-opacity="0.6" d="M0,64L80,101.3C160,139,320,213,480,240C640,267,800,245,960,213.3C1120,181,1280,139,1360,117.3L1440,96L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}

/* DIAMOND CARD */
.theme-diamond {
    background: linear-gradient(135deg, #0f766e, #134e4a, #042f2e);
}
.theme-diamond::before {
    background-image: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05)), linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%, rgba(255,255,255,0.05));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}
.theme-diamond .org-title { color: #fff; text-shadow: 1px 1px 2px #000; }
.theme-diamond .org-subtitle { color: #ccfbf1; }
.theme-diamond .card-title-group { border-bottom-color: rgba(255,255,255,0.3); }
.theme-diamond .card-title-group::after { color: rgba(255,255,255,0.5); }
.theme-diamond .card-tier-name {
    background: linear-gradient(to bottom, #ffffff, #99f6e4, #0f766e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.6));
}
.theme-diamond .price-pill {
    background: linear-gradient(to bottom, #115e59, #042f2e);
    color: #ccfbf1;
    border-color: #5eead4;
}
.theme-diamond .price-pill.old { color: #99f6e4; }
.theme-diamond .launch-ribbon {
    background: #b91c1c;
    border: 1px solid #fef08a;
    box-shadow: 0 0 10px rgba(254, 240, 138, 0.5);
}
.theme-diamond .health-check-info { color: #ccfbf1; }
.theme-diamond .icon-clipboard { filter: none; opacity: 1; }
.theme-diamond .benefits-box { background: rgba(255,255,255,0.9); }
.theme-diamond .benefits-header { background: linear-gradient(to right, #94a3b8, #cbd5e1); color: #1e293b; }
.theme-diamond .check-icon { background: #0f766e; }
.theme-diamond .card-footer-strip {
    background: linear-gradient(to right, #cbd5e1, #94a3b8, #cbd5e1);
    color: #1e293b;
    border: 1px solid #fff;
}
.theme-diamond .card-footer-strip::after { background: rgba(0,0,0,0.2); }
.theme-diamond .card-bottom-text { color: #ccfbf1; }
.theme-diamond .card-wave {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ccfbf1" fill-opacity="0.2" d="M0,256L60,229.3C120,203,240,149,360,144C480,139,600,181,720,170.7C840,160,960,96,1080,85.3C1200,75,1320,117,1380,138.7L1440,160L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
}
@ m e d i a   p r i n t   {   b o d y   *   {   v i s i b i l i t y :   h i d d e n ;   }   . p r e m i u m - c a r d - c o n t a i n e r ,   . p r e m i u m - c a r d - c o n t a i n e r   *   {   v i s i b i l i t y :   v i s i b l e ;   }   . p r e m i u m - c a r d - c o n t a i n e r   {   p o s i t i o n :   a b s o l u t e ;   l e f t :   0 ;   t o p :   0 ;   }   }  
 
/* Print Styles for exact card size */
@media print {
    body * {
        visibility: hidden !important;
    }
    #membershipCardArea, #membershipCardArea * {
        visibility: visible !important;
    }
    #membershipCardArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    .premium-card-container {
        width: 85.6mm !important;
        height: 54mm !important;
        max-width: 85.6mm !important;
        margin: 0 !important;
        page-break-inside: avoid;
    }
    .premium-card {
        width: 100% !important;
        height: 100% !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border-radius: 12px !important;
    }
    @page {
        margin: 0;
        size: auto;
    }
}
