:root {
    --accent: #e0e0e0;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --card-bg: linear-gradient(145deg, #1d2026 0%, #111317 100%);
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: transparent !important;
}

/* --- MICRO-GRID OVERLAY --- */
.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.5px, transparent 0.5px);
    background-size: 10px 10px; 
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* --- ANIMATIONS --- */
@keyframes sign-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes list-slide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes glint {
    0% { left: -150%; }
    35% { left: 150%; } 
    100% { left: 150%; }
}

@keyframes icon-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* --- MAIN CONTAINER --- */
#id-card-container {
    position: absolute;
    top: 25%;
    right: 40px;
    opacity: 0;
    perspective: 1000px;
    transform: translateX(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#id-card-container:not(.hidden) {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.hidden {
    pointer-events: none;
    opacity: 0 !important;
    transform: translateX(50px) scale(0.8) !important;
}

/* --- CARD WRAPPER --- */
.id-card-wrapper {
    position: relative;
    width: 440px;
    height: 240px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.glint-effect {
    position: absolute;
    top: 0; left: -150%;
    width: 150%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: skewX(-20deg);
    z-index: 6;
    pointer-events: none;
}

#id-card-container:not(.hidden) .glint-effect {
    animation: glint 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.watermark {
    position: absolute;
    top: 50%; left: 45%;
    width: 220px; height: 220px;
    transform: translate(-50%, -50%);
    background: url('logo.png') center/contain no-repeat;
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
}

/* --- CARD CONTENT --- */
.id-card {
    position: relative;
    z-index: 2;
    height: 100%;
    margin-right: 26px;
    display: flex;
    flex-direction: column;
}

.header { padding: 18px 25px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.header-text-group h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--text-main); letter-spacing: 2.5px; text-transform: uppercase; }
.header-text-group p { margin: 4px 0 0; font-size: 8px; font-weight: 700; color: var(--accent); letter-spacing: 1.5px; opacity: 0.6; }

.id-badge { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 900; color: var(--accent); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }

.card-body { padding: 0 25px; flex: 1; display: flex; align-items: center; }
.left-col { width: 110px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.id-symbol {
    width: 80px; height: 100px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}

.id-symbol i { font-size: 35px; color: var(--text-main); opacity: 0.15; }

.signature {
    width: 100%; font-family: 'Dancing Script', cursive; font-size: 18px; color: var(--text-main); opacity: 0.4;
    text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: inset(0 100% 0 0);
}

#id-card-container:not(.hidden) .signature { animation: sign-reveal 1.2s ease-out forwards; animation-delay: 0.3s; }

.vertical-divider { width: 1px; height: 100px; margin: 0 25px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), transparent); }

.right-col h2 { margin: 0 0 12px; font-size: 24px; font-weight: 800; color: var(--text-main); text-transform: uppercase; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; align-items: center; margin-bottom: 8px; font-size: 12px; opacity: 0; }

#id-card-container:not(.hidden) .info-list li { animation: list-slide 0.6s ease-out forwards; }
#id-card-container:not(.hidden) .info-list li:nth-child(1) { animation-delay: 0.4s; }
#id-card-container:not(.hidden) .info-list li:nth-child(2) { animation-delay: 0.5s; }
#id-card-container:not(.hidden) .info-list li:nth-child(3) { animation-delay: 0.6s; }

.info-list li i { width: 20px; margin-right: 12px; font-size: 10px; color: var(--accent); opacity: 0.6; }
.info-list span:not(.value) { width: 80px; font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.info-list .value { margin-left: 5px; font-size: 13px; font-weight: 600; color: var(--text-main); }

.card-footer { display: flex; height: 44px; background: rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.money { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 800; color: #fff; }

/* Pulsing Icons */
.money i { animation: icon-pulse 2.5s infinite; }

.branding-strip { position: absolute; right: 0; top: 0; bottom: 0; width: 26px; background: rgba(0, 0, 0, 0.25); border-left: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; }
.branding-strip span { writing-mode: vertical-rl; font-size: 7px; color: var(--text-main); text-transform: uppercase; letter-spacing: 2.5px; opacity: 0.15; }