/* --- SCOPED CSS FOR ENTRY INFO PAGE --- */
.ei-wrapper {
    font-family: 'Inter', sans-serif;
    margin-bottom: 32px;
}

/* ── Page Header ── */
.ei-page-header {
    margin-bottom: 14px;
}

.ei-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ei-page-title h1 {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }

.ei-back-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
    padding: 0;
}

    .ei-back-btn:hover {
        background-color: #F3F4F6;
    }

    .ei-back-btn svg {
        width: 20px;
        height: 20px;
    }

/* ── Subheader (Entry ID + Active badge) ── */
.ei-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.ei-entry-id {
    font-size: 15px;
    font-weight: 700;
    color: #16A34A;
}

.ei-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ei-badge-active {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

/* ── Two-Col Layout ── */
.ei-two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ── Card ── */
.ei-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    margin-bottom: 16px;
}

.ei-two-col .ei-card {
    margin-bottom: 0;
}

.ei-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
    letter-spacing: 0.4px;
}

.ei-card-title-dark {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
}

/* ── Entry Info Grid (3 columns × 2 rows) ── */
.ei-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
}

.ei-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.ei-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .ei-info-icon svg {
        width: 18px;
        height: 18px;
    }

.ei-icon-red {
    background-color: #FEF2F2;
}

.ei-icon-blue {
    background-color: #EFF6FF;
}

.ei-icon-green {
    background-color: #F0FDF4;
}

.ei-icon-violet {
    background-color: #F5F3FF;
}

.ei-icon-coral {
    background-color: #FFF7ED;
}

.ei-icon-gold {
    background-color: #FFFBEB;
}

.ei-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ei-info-label {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
}

.ei-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.3;
    word-break: break-word;
}

/* ── Divider ── */
.ei-divider {
    height: 1px;
    background: repeating-linear-gradient(to right, #E5E7EB 0 4px, transparent 4px 8px);
    margin: 16px 0 14px;
}

/* ── Unlock Banner ── */
.ei-unlock-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #4B5563;
    font-weight: 500;
}

.ei-text-gold {
    color: #D97706;
    font-weight: 700;
}

.ei-trophy-emoji {
    font-size: 16px;
}

/* ── Lucky Draw ── */
.ei-lucky-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

    .ei-lucky-list li {
        font-size: 13px;
        color: #374151;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 6px;
        line-height: 1.5;
    }

        .ei-lucky-list li::before {
            content: "•";
            color: #6B7280;
            font-size: 14px;
            line-height: 1.5;
            flex-shrink: 0;
        }

    .ei-lucky-list strong {
        color: #111827;
        font-weight: 700;
    }

.ei-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ei-progress-count-wrap {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.ei-progress-count {
    font-size: 30px;
    font-weight: 800;
    color: #16A34A;
    line-height: 1;
}

.ei-progress-total {
    font-size: 15px;
    font-weight: 500;
    color: #9CA3AF;
    align-self: flex-end;
    padding-bottom: 3px;
}

.ei-trophy-icon {
    font-size: 24px;
}

.ei-progress-track {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #E5E7EB;
    border-radius: 99px;
    margin-bottom: 8px;
}

.ei-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #16A34A 0%, #22C55E 55%, #F59E0B 100%);
    border-radius: 99px;
    width: 45%;
    position: relative;
}

.ei-milestone-marker {
    position: absolute;
    top: -3px;
    left: 75%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #F59E0B;
    border: 2px solid #FFFFFF;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ei-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9CA3AF;
    padding: 0 2px;
}

.ei-gold-label {
    color: #D97706;
    font-weight: 700;
    font-size: 11px;
}

/* ── Verification ── */
.ei-verify-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ei-verify-icon {
    width: 36px;
    height: 36px;
    background-color: #F5F3FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .ei-verify-icon svg {
        width: 18px;
        height: 18px;
    }

.ei-verify-label {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.ei-verify-link {
    font-size: 13px;
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

    .ei-verify-link:hover {
        text-decoration: underline;
    }

.ei-verify-divider {
    height: 1px;
    background: repeating-linear-gradient(to right, #E5E7EB 0 4px, transparent 4px 8px);
    margin: 14px 0;
}

.ei-verify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.ei-status-active {
    color: #16A34A;
    font-weight: 700;
    font-size: 14px;
}

.ei-status-arrow {
    color: #16A34A;
    font-weight: 700;
}

.ei-status-desc {
    color: #6B7280;
    font-size: 13px;
}

/* ── Actions ── */
.ei-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.ei-btn-primary {
    background-color: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    font-family: inherit;
}

    .ei-btn-primary:hover {
        background-color: #1D4ED8;
    }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
    .ei-two-col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .ei-two-col {
        grid-template-columns: 1fr;
    }

    .ei-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ei-page-title h1 {
        font-size: 17px;
    }

    .ei-card {
        padding: 16px;
    }

    .ei-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
    }

    .ei-unlock-banner {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .ei-progress-count {
        font-size: 26px;
    }

    .ei-verify-row {
        gap: 8px;
    }

    .ei-actions {
        justify-content: stretch;
    }

    .ei-btn-primary {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .ei-info-grid {
        grid-template-columns: 1fr;
    }

    .ei-subheader {
        flex-direction: row;
        align-items: center;
    }

    .ei-progress-labels {
        font-size: 10px;
    }

    .ei-gold-label {
        font-size: 10px;
    }

    .ei-progress-count {
        font-size: 24px;
    }

    .ei-progress-total {
        font-size: 13px;
    }

    .ei-trophy-icon {
        font-size: 20px;
    }

    .ei-status-active,
    .ei-status-desc {
        font-size: 12px;
    }
}
