/* ── Shared tokens (mirrors styles.css) ── */
:root {
    --primary:      #11543b;
    --primary-dark: #0c3526;
    --primary-deep: #061a0f;
    --gold:         #c9a227;
    --gold-light:   #e8c84a;
    --gold-pale:    rgba(201, 162, 39, 0.18);
    --white:        #ffffff;
    --white-dim:    rgba(255, 255, 255, 0.70);
    --white-muted:  rgba(255, 255, 255, 0.45);
}

@font-face {
    font-family: 'SolaimanLipi';
    src: url('../asset/fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    background:
        radial-gradient(circle at 8% 8%, #dcefe6 0%, transparent 40%),
        radial-gradient(circle at 92% 15%, #e8f1ed 0%, transparent 35%),
        #f4f7f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ── Card wrapper ── */
.card-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* ── ID Card ── */
.id-card {
    width: 360px;
    background: linear-gradient(155deg, #1a5c3a 0%, #22784d 45%, #2e9462 100%);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    color: var(--white);
    box-shadow:
        0 32px 72px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(201, 162, 39, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* ── Diagonal gold decorations ── */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.deco-a {
    top: -80px;
    right: 48px;
    width: 2px;
    height: 420px;
    background: linear-gradient(to bottom, transparent 0%, var(--gold) 35%, transparent 100%);
    transform: rotate(28deg);
    transform-origin: top center;
    opacity: 0.65;
}

.deco-b {
    top: -80px;
    right: 68px;
    width: 1px;
    height: 420px;
    background: linear-gradient(to bottom, transparent 0%, var(--gold-light) 40%, transparent 100%);
    transform: rotate(28deg);
    transform-origin: top center;
    opacity: 0.35;
}

.deco-c {
    bottom: -60px;
    left: 36px;
    width: 2px;
    height: 340px;
    background: linear-gradient(to top, transparent 0%, var(--gold) 40%, transparent 100%);
    transform: rotate(28deg);
    transform-origin: bottom center;
    opacity: 0.55;
}

.deco-d {
    bottom: -60px;
    left: 56px;
    width: 1px;
    height: 340px;
    background: linear-gradient(to top, transparent 0%, var(--gold-light) 45%, transparent 100%);
    transform: rotate(28deg);
    transform-origin: bottom center;
    opacity: 0.30;
}

/* Subtle corner shine */
.deco-shine {
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at top right, rgba(201,162,39,0.12) 0%, transparent 70%);
    border-radius: 0 22px 0 0;
}

/* ── Card Header ── */
.card-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 18px;
    background: rgba(0, 0, 0, 0.20);
    border-bottom: 2px solid rgba(201, 162, 39, 0.50);
}

.card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    padding: 5px;
    flex-shrink: 0;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.card-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-bn {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
}

.brand-url {
    font-size: 13px;
    color: #ffd966;
    letter-spacing: 0.04em;
    margin-top: 2px;
    font-weight: 600;
}

/* ── Photo ── */
.card-photo-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 22px 0 10px;
}

.photo-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(var(--gold) 0deg, var(--gold-light) 90deg, var(--gold) 180deg, #a07c18 270deg, var(--gold) 360deg);
    box-shadow: 0 6px 24px rgba(201,162,39,0.35);
    flex-shrink: 0;
}

.photo-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-deep);
}

.card-photo {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    display: block;
}

/* ── Member badge ── */
.member-badge {
    position: relative;
    z-index: 2;
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    color: var(--primary-deep);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 18px;
    border-radius: 999px;
}

/* ── Info section ── */
.card-info {
    position: relative;
    z-index: 2;
    padding: 18px 22px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.info-label {
    font-size: 13px;
    color: #ffd966;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.info-value {
    font-size: 17px;
    color: var(--white);
    line-height: 1.45;
}

.info-value.name-bn {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.info-value.name-en {
    font-size: 17px;
    color: var(--white-dim);
    margin-top: -2px;
}

/* ── Card footer ── */
.card-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 22px;
    margin-top: 10px;
    border-top: 2px solid rgba(201, 162, 39, 0.50);
    gap: 12px;
}

.card-id-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.id-label {
    font-size: 13px;
    color: #ffd966;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.id-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
}

.member-since {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    margin-top: 4px;
}

/* QR code container */
.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.qr-label {
    font-size: 11px;
    color: #ffd966;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#qrcode {
    display: block;
    width: 90px;
    height: 90px;
    background: var(--white);
    padding: 5px;
    border-radius: 8px;
    border: 2px solid var(--gold);
    box-shadow: 0 3px 12px rgba(0,0,0,0.30);
}


/* ── Print button ── */
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: 'SolaimanLipi', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(17, 84, 59, 0.4);
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.print-btn:hover {
    background: #0c3526;
    transform: translateY(-2px);
}

/* ── Print styles ── */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: none;
        padding: 0;
        display: block;
    }

    .card-page {
        gap: 0;
    }

    .print-btn {
        display: none;
    }

    .id-card {
        box-shadow: none;
        border: 1px solid #c9a227;
        break-inside: avoid;
        page-break-inside: avoid;
        margin: 0 auto;
    }
}
